]> granicus.if.org Git - sudo/commitdiff
Quiet a clang-analyzer dead store warning.
authorTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 26 Mar 2012 15:03:23 +0000 (11:03 -0400)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 26 Mar 2012 15:03:23 +0000 (11:03 -0400)
plugins/sudoers/visudo.c

index 5aadabb096a90dfd50f7d7107f90b90ef3d8e0ad..923e1235fc9dd628f72610d1554deec31e271fbc 100644 (file)
@@ -207,9 +207,8 @@ main(int argc, char *argv[])
                usage(1);
        }
     }
-    argc -= optind;
-    argv += optind;
-    if (argc)
+    /* There should be no other command line arguments. */
+    if (argc - optind != 0)
        usage(1);
 
     sudo_setpwent();