# HG changeset patch # User Sergey Poznyakoff # Date 1158052000 0 # Node ID 33903d90fa2b6208d95a2181f7c91c7e62c0a60a # Parent 2882fa1b504b7637559b2d4c7e54142dd0fd10ab (argp_doc): Make sure NULL is not passed to dgettext diff --git a/lib/argp-help.c b/lib/argp-help.c --- a/lib/argp-help.c +++ b/lib/argp-help.c @@ -1496,7 +1496,7 @@ } 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;