]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Avoid using a NULL argparser.
authorBruno Haible <bruno@clisp.org>
Thu, 7 Sep 2006 21:07:33 +0000 (21:07 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:13:58 +0000 (12:13 +0200)
gettext-tools/src/ChangeLog
gettext-tools/src/x-lisp.c

index 5191d8f5fcb6b9b5845debc2dfe1deccb5980eb8..31c687d40828d04afa13e23ca519a74836284f47 100644 (file)
@@ -17,6 +17,7 @@
        argparser is NULL.
        * x-elisp.c (read_object): Likewise.
        * x-librep.c (read_object): Likewise.
+       * x-lisp.c (read_object): Likewise.
        Reported by Kevin Ryde <user42@zip.com.au>.
 
 2006-08-16  Bruno Haible  <bruno@clisp.org>
index 35416ee780ade7d5cdb735b00a0827dec151935d..16309301a85b848561f13c57dfc9dcb1fc6afa47 100644 (file)
@@ -1087,7 +1087,7 @@ read_object (struct object *op, flag_context_ty outer_context)
                    else
                      {
                        /* These are the argument positions.  */
-                       if (inner.type == t_string)
+                       if (argparser != NULL && inner.type == t_string)
                          arglist_parser_remember (argparser, arg,
                                                   string_of_object (&inner),
                                                   inner_context,