changeset 7296:33903d90fa2b

(argp_doc): Make sure NULL is not passed to dgettext
author Sergey Poznyakoff <gray@gnu.org.ua>
date Tue, 12 Sep 2006 09:06:40 +0000
parents 2882fa1b504b
children be4aad0241ea
files lib/argp-help.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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;