changeset 247:8c6f0a3afc43

"goto out" instead of "return -1" when commandline argument parsing fails.
author Matti Hamalainen <ccr@tnsp.org>
date Sun, 05 Jan 2020 09:47:01 +0200
parents f50947e8ff93
children a8605886579d
files sidinfo.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/sidinfo.c	Sun Jan 05 09:46:14 2020 +0200
+++ b/sidinfo.c	Sun Jan 05 09:47:01 2020 +0200
@@ -1246,7 +1246,7 @@
     // Parse command line arguments
     if (!th_args_process(argc, argv, optList, optListN,
         argHandleOpt, NULL, OPTH_ONLY_OPTS))
-        return -1;
+        goto out;
 
     if (optOneLineFieldSep != NULL)
     {