From: Lennart Poettering Date: Wed, 2 Oct 2013 12:03:56 +0000 (+0200) Subject: acpi: make sure we never free an uninitialized pointer X-Git-Tag: v209~1994 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=2c64a8d0caf84254e38f2e76528f2034d37da520;p=elogind.git acpi: make sure we never free an uninitialized pointer --- diff --git a/src/shared/acpi-fpdt.c b/src/shared/acpi-fpdt.c index a7c83ed85..af58c7cca 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;