chiark / gitweb /
efivars: itialize variable
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 10 Mar 2015 00:41:00 +0000 (20:41 -0400)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 10 Mar 2015 02:10:54 +0000 (22:10 -0400)
Introduced a few commits ago.

src/shared/efivars.c

index d3bec5092d8b37b25fec28a5272dd7f86f27c280..20067c601adb41d205c2a4eda7c8e7fbfbc7c333 100644 (file)
@@ -105,7 +105,7 @@ int efi_get_variable(
         uint32_t a;
         ssize_t n;
         struct stat st;
-        _cleanup_free_ void *buf;
+        _cleanup_free_ void *buf = NULL;
 
         assert(name);
         assert(value);