#endif
#if ENABLE_NLS
+# include <locale.h>
# include <gettext.h>
# include <mbswidth.h>
#else
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);