diff options
author | xhe <xw897002528@gmail.com> | 2018-12-28 22:43:45 +0800 |
---|---|---|
committer | rofl0r <retnyg@gmx.net> | 2019-01-16 02:38:18 +0000 |
commit | ece94b7de3f051a4a417599f1cbf1e5cb6bfbb74 (patch) | |
tree | 71380d1b7024b8e3a5de4d6e9cb0a8ea24a4508b | |
parent | 8407f970300e7af6f090dc80c556f9b2fed12dba (diff) | |
download | gettext-tiny-new_merge.tar.gz |
poparser: not check overflow for msgid_pluralnew_merge
it's allowed to have nplurals=1, but with msgid_plural and msgstr[0]
-rw-r--r-- | src/poparser.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/poparser.c b/src/poparser.c index 46aaa9f..d7aafb1 100644 --- a/src/poparser.c +++ b/src/poparser.c @@ -289,10 +289,6 @@ enum po_error poparser_feed_line(struct po_parser *p, char* in, size_t in_len) { if (!msg->id_len || p->strcnt) return -po_invalid_entry; - if (p->strict && p->hdr.nplurals < 2) { - return -po_plurals_overflow; - } - if (p->stage == ps_parse) { if (msg->plural == NULL) { return -po_internal; |