chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6c8c92f
)
acpi: make sure we never free an uninitialized pointer
author
Lennart Poettering
<lennart@poettering.net>
Wed, 2 Oct 2013 12:03:56 +0000
(14:03 +0200)
committer
Lennart Poettering
<lennart@poettering.net>
Wed, 2 Oct 2013 12:03:56 +0000
(14:03 +0200)
src/shared/acpi-fpdt.c
patch
|
blob
|
history
diff --git
a/src/shared/acpi-fpdt.c
b/src/shared/acpi-fpdt.c
index a7c83ed8555987bb3b3dfa4dece2b182763a0969..af58c7cca6b81dd5e63067a8b4f04c2c3363aaf8 100644
(file)
--- 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;