daandemeyer / rpms / systemd

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