]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Fix bug introduced on 2008-10-04.
authorBruno Haible <bruno@clisp.org>
Sun, 25 Jan 2009 12:44:09 +0000 (12:44 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:15:59 +0000 (12:15 +0200)
gettext-tools/src/ChangeLog
gettext-tools/src/read-catalog-abstract.c
gettext-tools/src/read-catalog-abstract.h

index c572ef889d0318047fa2f0fc42ee7c73d1496b02..7fdf80820e3b0723fd5f78632376bd2a23533e12 100644 (file)
@@ -1,3 +1,9 @@
+2009-01-25  Bruno Haible  <bruno@clisp.org>
+
+       Fix bug introduced on 2008-10-04.
+       * read-catalog-abstract.c (po_parse_comment_special): Initialize
+       *rangep.
+
 2009-01-18  Bruno Haible  <bruno@clisp.org>
 
        * msgfmt.c: Include str-list.h.
index 05a739a46fbdac7e716e4a0ff3855f3d4a35d593..fd821f46ce9ac1203b0b4598351384c7eba1b615 100644 (file)
@@ -1,5 +1,5 @@
 /* Reading PO files, abstract class.
-   Copyright (C) 1995-1996, 1998, 2000-2008 Free Software Foundation, Inc.
+   Copyright (C) 1995-1996, 1998, 2000-2009 Free Software Foundation, Inc.
 
    This file was written by Peter Miller <millerp@canb.auug.org.au>
 
@@ -255,7 +255,8 @@ po_callback_comment_special (const char *s)
 }
 
 
-/* Parse a special comment and put the result in *fuzzyp, formatp, *wrapp.  */
+/* Parse a special comment and put the result in *fuzzyp, formatp, *rangep,
+   *wrapp.  */
 void
 po_parse_comment_special (const char *s,
                          bool *fuzzyp, enum is_format formatp[NFORMATS],
@@ -266,6 +267,8 @@ po_parse_comment_special (const char *s,
   *fuzzyp = false;
   for (i = 0; i < NFORMATS; i++)
     formatp[i] = undecided;
+  rangep->min = -1;
+  rangep->max = -1;
   *wrapp = undecided;
 
   while (*s != '\0')
index 17af04cf74cfa8ec31d12bb802cdbfe748446360..2847463490cf8a68d78cce7ce01e7fdf92e5b295 100644 (file)
@@ -1,5 +1,5 @@
 /* Reading PO files, abstract class.
-   Copyright (C) 1995-1996, 1998, 2000-2003, 2005-2006, 2008 Free Software Foundation, Inc.
+   Copyright (C) 1995-1996, 1998, 2000-2003, 2005-2006, 2008-2009 Free Software Foundation, Inc.
 
    This file was written by Peter Miller <millerp@canb.auug.org.au>
 
@@ -179,7 +179,8 @@ extern void po_callback_comment_filepos (const char *s, size_t line);
 extern void po_callback_comment_special (const char *s);
 extern void po_callback_comment_dispatcher (const char *s);
 
-/* Parse a special comment and put the result in *fuzzyp, formatp, *wrapp.  */
+/* Parse a special comment and put the result in *fuzzyp, formatp, *rangep,
+   *wrapp.  */
 extern void po_parse_comment_special (const char *s, bool *fuzzyp,
                                      enum is_format formatp[NFORMATS],
                                      struct argument_range *rangep,