diff options
author | pgen <p.gen.progs@gmail.com> | 2020-07-23 18:26:42 +0200 |
---|---|---|
committer | pgen <p.gen.progs@gmail.com> | 2020-07-25 23:15:11 +0200 |
commit | 3b3748d0047c31ada3d72ec98dcf2ff8a40002d1 (patch) | |
tree | 5c90f653b0102f8034c7dd9b444d3605bc5ce717 /ctxopt.c | |
parent | 8a390021cc4f1914a95afbe5ebdb9cdd1144cf89 (diff) |
Sync with github's ctxopt commit 7d850df
Diffstat (limited to 'ctxopt.c')
-rw-r--r-- | ctxopt.c | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -358,10 +358,11 @@ fatal(errors e, char * errmsg) break; case CTXOPTUNXARG: - fprintf(stderr, - "The parameter %s takes no arguments " - "or has too many arguments.\n", - cur_state->cur_opt_par_name); + if (cur_state->cur_opt_par_name != NULL) + fprintf(stderr, + "The parameter %s takes no arguments " + "or has too many arguments.\n", + cur_state->cur_opt_par_name); break; case CTXOPTMISARG: |