]> granicus.if.org Git - sudo/commitdiff
Ignore the return value of the initial sudoersparse(), before
authorTodd C. Miller <Todd.Miller@courtesan.com>
Sat, 7 May 2016 10:52:21 +0000 (04:52 -0600)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Sat, 7 May 2016 10:52:21 +0000 (04:52 -0600)
we have actually edited any files.  Coverity CID 104078.

plugins/sudoers/visudo.c

index fba57d12523e17b99979235f3bdb3aeb79e66d49..320c2e6079646774bdb391cf21d9c90df3561e16 100644 (file)
@@ -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);