summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-10-02 14:03:56 +0200
committerLennart Poettering <lennart@poettering.net>2013-10-02 14:03:56 +0200
commit2c64a8d0caf84254e38f2e76528f2034d37da520 (patch)
tree2a35edcd5f93cbf2b3275b4af94fc393670e6f69
parent6c8c92fef72cf6a7ef7109a424ef82dbdc4f6952 (diff)
acpi: make sure we never free an uninitialized pointer
-rw-r--r--src/shared/acpi-fpdt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/acpi-fpdt.c b/src/shared/acpi-fpdt.c
index a7c83ed855..af58c7cca6 100644
--- a/src/shared/acpi-fpdt.c
+++ b/src/shared/acpi-fpdt.c
@@ -81,7 +81,7 @@ struct acpi_fpdt_boot {
};
int acpi_get_boot_usec(usec_t *loader_start, usec_t *loader_exit) {
- _cleanup_free_ char *buf;
+ _cleanup_free_ char *buf = NULL;
struct acpi_table_header *tbl;
size_t l;
struct acpi_fpdt_header *rec;