26 lines
772 B
Diff
26 lines
772 B
Diff
|
From 2c64a8d0caf84254e38f2e76528f2034d37da520 Mon Sep 17 00:00:00 2001
|
||
|
From: Lennart Poettering <lennart@poettering.net>
|
||
|
Date: Wed, 2 Oct 2013 14:03:56 +0200
|
||
|
Subject: [PATCH 03/15] acpi: make sure we never free an uninitialized pointer
|
||
|
|
||
|
---
|
||
|
src/shared/acpi-fpdt.c | 2 +-
|
||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||
|
|
||
|
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;
|
||
|
--
|
||
|
1.8.4
|
||
|
|