Ensure that "out" is initialized in all error paths.

Reported by:	gcc
Reviewed by:	cem
Differential Revision:	https://reviews.freebsd.org/D13402
This commit is contained in:
Mark Johnston 2017-12-07 15:16:17 +00:00
parent b6721e4a5c
commit 3e4f07fc77
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=326658

View File

@ -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);