chiark / gitweb /
efivars: itialize variable
[elogind.git] / 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);