summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/shared/efivars.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/efivars.c b/src/shared/efivars.c
index d3bec5092d..20067c601a 100644
--- a/src/shared/efivars.c
+++ b/src/shared/efivars.c
@@ -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);