From 61fafa760a32f9ec1b096ff92ed4f39c1f9d95e7 Mon Sep 17 00:00:00 2001 From: Seth Troisi Date: Thu, 12 Dec 2019 17:16:44 -0800 Subject: [PATCH] Change exit to 0 for --help-format if fmt is found --- src/sox.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/sox.c b/src/sox.c index 15f0df67..b5a827fc 100644 --- a/src/sox.c +++ b/src/sox.c @@ -2133,6 +2133,7 @@ static void usage_format(char const * name) if (!(f = sox_find_format(name, sox_false))) { printf("Cannot find a format called `%s'.\n", name); display_supported_formats(); + exit(1); } else usage_format1(f); } @@ -2143,7 +2144,7 @@ static void usage_format(char const * name) usage_format1(f); } } - exit(1); + exit(0); } static void read_comment_file(sox_comments_t * comments, char const * const filename) -- 2.24.1.735.g03f4e72817-goog