summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxhe <xw897002528@gmail.com>2018-12-07 12:33:39 +0800
committerrofl0r <retnyg@gmx.net>2019-01-16 02:38:18 +0000
commitfbbf226f6f13bd983351608b5e3e9acae067e0e3 (patch)
tree6bee4743a91ebede33f5e8a03b3e9f47f165a3c3
parent852f7ea9b3d8e0a5bbc9df694bed5b9d74292c82 (diff)
downloadgettext-tiny-fbbf226f6f13bd983351608b5e3e9acae067e0e3.tar.gz
msgfmt: skip impossible cases
mentioned by rofl0r. it's not possible to have a case where lu is both priu32 and 64. we skip the case by adding one.
-rw-r--r--src/msgfmt.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/msgfmt.c b/src/msgfmt.c
index 98a9b88..c32d075 100644
--- a/src/msgfmt.c
+++ b/src/msgfmt.c
@@ -148,6 +148,11 @@ int process_line_callback(po_message_t msg, void* user) {
continue;
}
+ if (cnt[0] == 1 && cnt[1] == 0) {
+ i--;
+ continue;
+ }
+
k = 1;
break;
}