changeset 895:eb4ebbd5c171

Oops, fix argument handling.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 23 Feb 2015 15:41:27 +0200
parents c722ee4018e5
children 90a879277ca2
files src/dmargs_int.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/dmargs_int.c	Tue Feb 17 06:01:07 2015 +0200
+++ b/src/dmargs_int.c	Mon Feb 23 15:41:27 2015 +0200
@@ -67,7 +67,8 @@
                 (*argIndex)++;
                 optArg = argv[*argIndex];
             }
-            else
+            
+            if (optArg == NULL)
             {
                 THERR("Option '%s%s' requires an argument.\n",
                     isLong ? "--" : "-",