From 334294f09d9cd1d2018469df512b65fcc2801b61 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sat, 20 Jul 2002 15:18:37 +0000 Subject: (main): Add an explicit `exit (EXIT_SUCCESS);' for --version, rather than falling through. --- src/true.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') 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); -- cgit v1.2.3-70-g09d2