aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/args.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/args.c b/lib/args.c
index 9290293c..2c17951b 100644
--- a/lib/args.c
+++ b/lib/args.c
@@ -169,7 +169,8 @@ void get_optflags(void)
// Find the end of the longopt
for (end = ++options; *end && *end != ')'; end++);
- if (CFG_DEBUG && !*end) error_exit("Unterminated optstring");
+ if (CFG_TOYBOX_DEBUG && !*end)
+ error_exit("Unterminated optstring");
// Allocate and init a new struct longopts
lo = xmalloc(sizeof(struct longopts));