summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2002-07-20 15:18:37 +0000
committerJim Meyering <jim@meyering.net>2002-07-20 15:18:37 +0000
commit334294f09d9cd1d2018469df512b65fcc2801b61 (patch)
treef70567fb98890c598e6735fec096f1b92c7715d4 /src
parent3f6c422f1ad7fe7935e4843461f5dd44d3576ade (diff)
downloadcoreutils-334294f09d9cd1d2018469df512b65fcc2801b61.tar.xz
(main): Add an explicit `exit (EXIT_SUCCESS);'
for --version, rather than falling through.
Diffstat (limited to 'src')
-rw-r--r--src/true.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/true.c b/src/true.c
index 004b77ef6..1d46f1427 100644
--- a/src/true.c
+++ b/src/true.c
@@ -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);