X-Git-Url: https://git.draconx.ca/gitweb/dxcommon.git/blobdiff_plain/cd522a4c86728df10a96970f6a7bd99b823afc38..2e3850cc898dd13f81cc5ed7c14a5131aa06e197:/src/help.c diff --git a/src/help.c b/src/help.c index d1dd5f5..b09833a 100644 --- a/src/help.c +++ b/src/help.c @@ -179,7 +179,10 @@ out: void help_print_desc(const struct option *opt, const char *s, int i, int w) { - for (s = pgettext_expr(opt->name, s); *s; w = 0) { + if (opt) + s = pgettext_expr(opt->name, s); + + for (; *s; w = 0) { const char *nl = strchr(s, '\n'); int n = (nl ? nl-s : -1);