chiark / gitweb /
Never call qsort on potentially NULL arrays
[elogind.git] / src / shared / fileio.c
index 603a1c7b38755ad35fec95f48915367341776361..733b3203880b83bbd8b555de78f0a7c855bea323 100644 (file)
@@ -662,6 +662,7 @@ int get_status_field(const char *filename, const char *pattern, char **field) {
         int r;
 
         assert(filename);
+        assert(pattern);
         assert(field);
 
         r = read_full_file(filename, &status, NULL);