1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-08-12 12:00:21 +02:00

(main): Add an explicit `exit (EXIT_SUCCESS);'

for --version, rather than falling through.
This commit is contained in:
Jim Meyering
2002-07-20 15:18:37 +00:00
parent 3f6c422f1a
commit 334294f09d
+4 -1
View File
@@ -47,7 +47,10 @@ main (int argc, char **argv)
usage (EXIT_SUCCESS);
if (STREQ (argv[1], "--version"))
version_etc (stdout, PROGRAM_NAME, GNU_PACKAGE, VERSION, AUTHORS);
{
version_etc (stdout, PROGRAM_NAME, GNU_PACKAGE, VERSION, AUTHORS);
exit (EXIT_SUCCESS);
}
}
exit (EXIT_SUCCESS);