X-Git-Url: http://git.draconx.ca/gitweb/dxcommon.git/blobdiff_plain/0567de2636ff0ed0a9dc378cdbd82e0bb7dce788..6a6059f779c9ebb39f6011c2285afa93365139ea:/src/help.c?ds=sidebyside diff --git a/src/help.c b/src/help.c index d1dd5f5..ea817e8 100644 --- a/src/help.c +++ b/src/help.c @@ -28,6 +28,7 @@ #endif #if ENABLE_NLS +# include # include # include #else @@ -179,7 +180,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);