From: Karel Zak Date: Mon, 22 May 2023 10:43:53 +0000 (+0200) Subject: lib/shells: initialize free-able variables X-Git-Tag: v2.40-rc1~456 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f644f33089bc63f1d4ab1d6fcb910660c8ab273f;p=thirdparty%2Futil-linux.git lib/shells: initialize free-able variables Signed-off-by: Karel Zak --- diff --git a/lib/shells.c b/lib/shells.c index e0d065ee25..07f4e59403 100644 --- a/lib/shells.c +++ b/lib/shells.c @@ -21,8 +21,8 @@ extern int is_known_shell(const char *shell_name) #if defined (HAVE_LIBECONF) && defined (USE_VENDORDIR) size_t size = 0; econf_err error; - char **keys; - econf_file *key_file; + char **keys = NULL; + econf_file *key_file = NULL; error = econf_readDirs(&key_file, _PATH_VENDORDIR,