]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Fix typo that could lead to a crash.
authorBruno Haible <bruno@clisp.org>
Fri, 16 May 2008 22:37:42 +0000 (22:37 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:15:42 +0000 (12:15 +0200)
gettext-tools/src/ChangeLog
gettext-tools/src/msgl-iconv.c

index ef531571234a5fbd57a89619a906195138a289df..5be1915b3f91743396e3a8dde2965d8ff7a0bc3d 100644 (file)
@@ -1,3 +1,10 @@
+2008-05-16  Bruno Haible  <bruno@clisp.org>
+
+       * gettext-tools/src/msgl-iconv.c (iconvable_prev_msgid): Fix typo.
+       Reported by Karl Eichwalder <ke@novell.com>
+       via Philipp Thomas <pth@novell.com>
+       at <https://bugzilla.novell.com/show_bug.cgi?id=391372>.
+
 2008-05-10  Bruno Haible  <bruno@clisp.org>
 
        * write-po.c: Include unilbrk.h instead of linebreak.h.
index 285c6a515ba5899c5f5981c82911602dda363411..c3748094f5f477fc5d72701810832735163a9de5 100644 (file)
@@ -1,5 +1,5 @@
 /* Message list charset and locale charset handling.
-   Copyright (C) 2001-2003, 2005-2007 Free Software Foundation, Inc.
+   Copyright (C) 2001-2003, 2005-2008 Free Software Foundation, Inc.
    Written by Bruno Haible <haible@clisp.cons.org>, 2001.
 
    This program is free software: you can redistribute it and/or modify
@@ -411,7 +411,7 @@ iconvable_prev_msgid (iconv_t cd, message_ty *mp)
   if (mp->prev_msgid != NULL)
     if (!iconvable_string (cd, mp->prev_msgid))
       return false;
-  if (mp->msgid_plural != NULL)
+  if (mp->prev_msgid_plural != NULL)
     if (!iconvable_string (cd, mp->prev_msgid_plural))
       return false;
   return true;