chiark / gitweb /
efi: never call qsort on potentially NULL arrays
[elogind.git] / src / shared / acpi-fpdt.c
index b094f34a5f4e31700c74c2bf43b68615c0ea4acf..af58c7cca6b81dd5e63067a8b4f04c2c3363aaf8 100644 (file)
@@ -81,7 +81,7 @@ struct acpi_fpdt_boot {
 };
 
 int acpi_get_boot_usec(usec_t *loader_start, usec_t *loader_exit) {
-        char *buf;
+        _cleanup_free_ char *buf = NULL;
         struct acpi_table_header *tbl;
         size_t l;
         struct acpi_fpdt_header *rec;