[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug-gnulib] Fixing argp doc strings

From: Bruno Haible
Subject: Re: [bug-gnulib] Fixing argp doc strings
Date: Mon, 11 Sep 2006 14:32:07 +0200
User-agent: KMail/1.9.1

Sergey Poznyakoff wrote:
> !           inp_text = __strndup (argp->doc, inp_text_len);
> !         }
> !     }
> !       else
> !     inp_text = post ? 0 : argp->doc;
> !       trans_text = dgettext (argp->argp_domain, inp_text);

In either case of the 'if' branch, inp_text can end up being NULL.
But it is not allowed to pass a NULL string argument to dgettext.
The GNU gettext manual says (for gettext):

   If the argument is `NULL' the result is undefined.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]