[systemd-commits] src/shared

Lennart Poettering lennart at kemper.freedesktop.org
Wed Oct 2 05:04:02 PDT 2013


 src/shared/acpi-fpdt.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 2c64a8d0caf84254e38f2e76528f2034d37da520
Author: Lennart Poettering <lennart at poettering.net>
Date:   Wed Oct 2 14:03:56 2013 +0200

    acpi: make sure we never free an uninitialized pointer

diff --git a/src/shared/acpi-fpdt.c b/src/shared/acpi-fpdt.c
index a7c83ed..af58c7c 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;



More information about the systemd-commits mailing list