From: Sergey Poznyakoff Date: Tue, 12 Sep 2006 09:06:40 +0000 (+0000) Subject: (argp_doc): Make sure NULL is not passed to dgettext X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7541dfc75e066ba1ace9aa0963174c123a0c7760;p=pspp (argp_doc): Make sure NULL is not passed to dgettext --- diff --git a/lib/argp-help.c b/lib/argp-help.c index 8f5c73adc5..e7baaf9ff8 100644 --- a/lib/argp-help.c +++ b/lib/argp-help.c @@ -1496,7 +1496,7 @@ argp_doc (const struct argp *argp, const struct argp_state *state, } else inp_text = post ? 0 : argp->doc; - trans_text = dgettext (argp->argp_domain, inp_text); + trans_text = inp_text ? dgettext (argp->argp_domain, inp_text) : NULL; } else trans_text = inp_text = 0;