From: Todd C. Miller Date: Thu, 22 Feb 2018 04:02:36 +0000 (-0700) Subject: Fix gcc false positive for uninitialized variable X-Git-Tag: SUDO_1_8_23^2~125 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c13557b6cb0355754086b5cb45c6aed31860df7a;p=sudo Fix gcc false positive for uninitialized variable --- diff --git a/plugins/sudoers/cvtsudoers_json.c b/plugins/sudoers/cvtsudoers_json.c index 72fe1bc19..b8a722d58 100644 --- a/plugins/sudoers/cvtsudoers_json.c +++ b/plugins/sudoers/cvtsudoers_json.c @@ -334,7 +334,7 @@ print_member_json_int(FILE *fp, char *name, int type, bool negated, enum word_type word_type, bool last_one, int indent, bool expand_aliases) { struct json_value value; - const char *typestr; + const char *typestr = NULL; const char *errstr; int alias_type = UNSPEC; bool need_newline = true;