]> git.ipfire.org Git - thirdparty/shadow.git/commitdiff
Remove redeclared variable
authorIker Pedrosa <ipedrosa@redhat.com>
Tue, 10 May 2022 11:23:07 +0000 (13:23 +0200)
committerSerge Hallyn <serge@hallyn.com>
Tue, 24 May 2022 12:49:11 +0000 (07:49 -0500)
No need to redeclare a variable with the same name and type. Just keep
the one with the biggest scope.

Signed-off-by: Iker Pedrosa <ipedrosa@redhat.com>
src/vipw.c

index 8c97f4bc5ffc451f9a41a6b307b433bab1fa5a65..488a97d9829cb3d3a8b25a1c9ede558af9890a9f 100644 (file)
@@ -293,7 +293,6 @@ vipwedit (const char *file, int (*file_lock) (void), int (*file_unlock) (void))
                /* use the system() call to invoke the editor so that it accepts
                   command line args in the EDITOR and VISUAL environment vars */
                char *buf;
-               int status;
 
                /* Wait for parent to make us the foreground pgrp. */
                if (orig_pgrp != -1) {