From: Todd C. Miller Date: Sat, 7 May 2016 10:52:21 +0000 (-0600) Subject: Ignore the return value of the initial sudoersparse(), before X-Git-Tag: SUDO_1_8_17^2~87 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=96f5fe4cd0b5df7ee5d7a44a20d49d3110d9c2ba;p=sudo Ignore the return value of the initial sudoersparse(), before we have actually edited any files. Coverity CID 104078. --- diff --git a/plugins/sudoers/visudo.c b/plugins/sudoers/visudo.c index fba57d125..320c2e607 100644 --- a/plugins/sudoers/visudo.c +++ b/plugins/sudoers/visudo.c @@ -238,7 +238,7 @@ main(int argc, char *argv[]) if ((sudoersin = open_sudoers(sudoers_file, true, NULL)) == NULL) exit(1); init_parser(sudoers_file, false); - sudoersparse(); + (void) sudoersparse(); (void) update_defaults(SETDEF_GENERIC|SETDEF_HOST|SETDEF_USER); editor = get_editor(&editor_argc, &editor_argv);