]> granicus.if.org Git - sudo/commitdiff
Fix gcc false positive for uninitialized variable
authorTodd C. Miller <Todd.Miller@sudo.ws>
Thu, 22 Feb 2018 04:02:36 +0000 (21:02 -0700)
committerTodd C. Miller <Todd.Miller@sudo.ws>
Thu, 22 Feb 2018 04:02:36 +0000 (21:02 -0700)
plugins/sudoers/cvtsudoers_json.c

index 72fe1bc190c7db3e07d6b2e2344322e2dff774b7..b8a722d58dd69856507d5bc438dfdad4bb71deec 100644 (file)
@@ -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;