From 3e4f07fc775067a3505bbfd99e687431d5167a83 Mon Sep 17 00:00:00 2001 From: Mark Johnston Date: Thu, 7 Dec 2017 15:16:17 +0000 Subject: [PATCH] Ensure that "out" is initialized in all error paths. Reported by: gcc Reviewed by: cem Differential Revision: https://reviews.freebsd.org/D13402 --- lib/libefivar/efivar-dp-xlate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libefivar/efivar-dp-xlate.c b/lib/libefivar/efivar-dp-xlate.c index c52815e6fb07..58c89068645a 100644 --- a/lib/libefivar/efivar-dp-xlate.c +++ b/lib/libefivar/efivar-dp-xlate.c @@ -529,7 +529,7 @@ build_dp(const char *efimedia, const char *relpath, efidp *dp) { char *fp, *dptxt = NULL; int rv = 0; - efidp out; + efidp out = NULL; size_t len; fp = path_to_file_dp(relpath);