summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrofl0r <retnyg@gmx.net>2012-09-18 20:56:03 +0200
committerrofl0r <retnyg@gmx.net>2012-09-18 20:56:03 +0200
commit25fc3039dc2cf7b502c04c02d7e5375ab5c3c51c (patch)
treec011c007dfab4ce32996a50549de8266d83c46c9
parent05bc6ae8abe8696ac3319a7f42e7a579771bda74 (diff)
downloadgettext-tiny-25fc3039dc2cf7b502c04c02d7e5375ab5c3c51c.tar.gz
fix bug that happened when msgrstr[>1] was used in combinations with multiline strings
-rw-r--r--src/poparser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/poparser.c b/src/poparser.c
index e44e6e3..790e753 100644
--- a/src/poparser.c
+++ b/src/poparser.c
@@ -136,7 +136,7 @@ int poparser_feed_line(struct po_parser *p, char* line, size_t buflen) {
[pe_invalid] = la_proc,
},
[pe_invalid] = {
- [pe_str] = la_abort,
+ [pe_str] = la_nop, // this can happen when we have msgstr[2] "" ... "foo", since we only parse msgstr[0] and [1]
[pe_msgid] = la_incr,
[pe_msgstr] = la_incr,
[pe_invalid] = la_nop,