summaryrefslogtreecommitdiff
path: root/src/poparser.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/poparser.c')
-rw-r--r--src/poparser.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/poparser.c b/src/poparser.c
index 372f544..64be654 100644
--- a/src/poparser.c
+++ b/src/poparser.c
@@ -73,8 +73,6 @@ static inline enum po_error poparser_feed_hdr(struct po_parser *p, po_message_t
if ((x = strstr(msg->str[0], "nplurals="))) {
p->hdr.nplurals = *(x+9) - '0';
}
-
- p->first = false;
}
return po_success;
@@ -88,6 +86,8 @@ static inline enum po_error poparser_clean(struct po_parser *p, po_message_t msg
}
if (p->strcnt) {
+ if (p->first) p->first = false;
+
msg->strlen[p->strcnt] = 0;
// PO_SYSDEP_PRIUMAX == 0, it has no effects to our codes