poe.c(real_msgid_to_display_msgid): Fix case when msgid_count==0 Signed-off-by: Страхиња Радић <contact@strahinja.org>
1 files changed, 6 insertions(+), 3 deletions(-) M poe.c
M poe.c => poe.c +6 -3
@@ 630,12 630,15 @@ size_t real_msgid_to_display_msgid(const struct DrawState* state) { struct PoEntry* current = state->entries; size_t ret = state->msgid_count ? 1 : 0; size_t ret = 1; if (!state->msgid_count) return 0; while (current != state->entries + state->msgid_number - 1) { if (!current->obsolete && current != state->entries + state->msgid_number - 1) if (current != state->entries + state->msgid_number - 1 && !current->obsolete) ret++; current++; }