diff th_args.c @ 636:c5ce9a4bfc3e

Fix the check for --long option argument.
author Matti Hamalainen <ccr@tnsp.org>
date Tue, 21 Jan 2020 07:54:42 +0200
parents c09b068ecb32
children 1763d9b26a58
line wrap: on
line diff
--- a/th_args.c	Tue Jan 21 07:16:18 2020 +0200
+++ b/th_args.c	Tue Jan 21 07:54:42 2020 +0200
@@ -50,7 +50,7 @@
                 currArg[len] == '=')
             {
                 opt = node;
-                optArg = (&currArg[len+1] != 0) ? &currArg[len+1] : NULL;
+                optArg = (currArg[len+1] != 0) ? &currArg[len+1] : NULL;
                 break;
             }
         }