valeriyvdovin / rpms / systemd

Forked from rpms/systemd 4 years ago
Clone

Blame SOURCES/0059-acpi-make-sure-we-never-free-an-uninitialized-pointe.patch

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