diff options
author | xhe <xw897002528@gmail.com> | 2018-12-27 19:57:52 +0800 |
---|---|---|
committer | rofl0r <retnyg@gmx.net> | 2019-01-16 02:38:18 +0000 |
commit | 949a6f2dc28f26d84b28a97f6405a7a23121a68e (patch) | |
tree | a2b3cb703617a7fb0a6d771dd9139db37f3a85fd | |
parent | 3338dee5f46e11936ebadcb41d87a1102ee06bb6 (diff) | |
download | gettext-tiny-949a6f2dc28f26d84b28a97f6405a7a23121a68e.tar.gz |
poparser: enable 'first' flag at both two stages
it should be set to true at the beginning of each stage, or we may
abort.
-rw-r--r-- | src/poparser.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/poparser.c b/src/poparser.c index 6254f7e..372f544 100644 --- a/src/poparser.c +++ b/src/poparser.c @@ -376,6 +376,7 @@ enum po_error poparser_finish(struct po_parser *p) { msg->str[cnt] = msg->str[cnt-1] + p->max_strlen[cnt-1]; p->hdr.nplurals = 2; + p->first = true; } else { if ( (t = poparser_clean(p, msg)) != po_success) return t; |