bug-gnulib
[Top][All Lists]
Advanced

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

Re: [bug-gnulib] Fixing argp doc strings


From: Sergey Poznyakoff
Subject: Re: [bug-gnulib] Fixing argp doc strings
Date: Tue, 12 Sep 2006 12:09:35 +0300

Bruno Haible <address@hidden> wrote:

> 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.

Thank you, I have fixed this.

Regards,
Sergey

2006-09-12  Sergey Poznyakoff  <address@hidden>

        * argp-help.c (argp_doc): Make sure NULL is not passed to
        dgettext.

Index: lib/argp-help.c
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/argp-help.c,v
retrieving revision 1.24
retrieving revision 1.25
diff -p -u -r1.24 -r1.25
--- lib/argp-help.c     9 Sep 2006 05:38:06 -0000       1.24
+++ lib/argp-help.c     12 Sep 2006 09:06:40 -0000      1.25
@@ -1496,7 +1496,7 @@ argp_doc (const struct argp *argp, const
        }
       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;
                        




reply via email to

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