ryantimwilson / rpms / systemd

Forked from rpms/systemd 2 months ago
Clone
65878a
From 9257a03a02a35f12e6d410dd16bf003c9bae742e Mon Sep 17 00:00:00 2001
65878a
From: Lennart Poettering <lennart@poettering.net>
65878a
Date: Wed, 2 Oct 2013 14:03:56 +0200
65878a
Subject: [PATCH] acpi: make sure we never free an uninitialized pointer
65878a
65878a
---
65878a
 src/shared/acpi-fpdt.c | 2 +-
65878a
 1 file changed, 1 insertion(+), 1 deletion(-)
65878a
65878a
diff --git a/src/shared/acpi-fpdt.c b/src/shared/acpi-fpdt.c
65878a
index a7c83ed..af58c7c 100644
65878a
--- a/src/shared/acpi-fpdt.c
65878a
+++ b/src/shared/acpi-fpdt.c
65878a
@@ -81,7 +81,7 @@ struct acpi_fpdt_boot {
65878a
 };
65878a
 
65878a
 int acpi_get_boot_usec(usec_t *loader_start, usec_t *loader_exit) {
65878a
-        _cleanup_free_ char *buf;
65878a
+        _cleanup_free_ char *buf = NULL;
65878a
         struct acpi_table_header *tbl;
65878a
         size_t l;
65878a
         struct acpi_fpdt_header *rec;