Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 7 Dec 2017 15:16:17 +0000 (UTC)
From:      Mark Johnston <markj@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r326658 - head/lib/libefivar
Message-ID:  <201712071516.vB7FGHuT069830@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: markj
Date: Thu Dec  7 15:16:17 2017
New Revision: 326658
URL: https://svnweb.freebsd.org/changeset/base/326658

Log:
  Ensure that "out" is initialized in all error paths.
  
  Reported by:	gcc
  Reviewed by:	cem
  Differential Revision:	https://reviews.freebsd.org/D13402

Modified:
  head/lib/libefivar/efivar-dp-xlate.c

Modified: head/lib/libefivar/efivar-dp-xlate.c
==============================================================================
--- head/lib/libefivar/efivar-dp-xlate.c	Thu Dec  7 09:05:34 2017	(r326657)
+++ head/lib/libefivar/efivar-dp-xlate.c	Thu Dec  7 15:16:17 2017	(r326658)
@@ -529,7 +529,7 @@ build_dp(const char *efimedia, const char *relpath, ef
 {
 	char *fp, *dptxt = NULL;
 	int rv = 0;
-	efidp out;
+	efidp out = NULL;
 	size_t len;
 
 	fp = path_to_file_dp(relpath);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201712071516.vB7FGHuT069830>