summaryrefslogtreecommitdiff
path: root/src/catalog.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/catalog.c')
-rw-r--r--src/catalog.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/catalog.c b/src/catalog.c
index 8ddfaee..3e40bf2 100644
--- a/src/catalog.c
+++ b/src/catalog.c
@@ -118,13 +118,13 @@ int
dump_translatable_strings(const char *const MSGS[]) {
int rc = -1;
- for (size_t i = 1; MSGS[i]; i++) {
+ for (size_t i = 0U; MSGS[i] != NULL; i++) {
if (printf("%ld ", i) < 0) {
logerr("printf(): %s", strerror(errno));
goto out;
}
- for (size_t j = 0; MSGS[i][j]; j++) {
+ for (size_t j = 0U; MSGS[i][j]; j++) {
if (MSGS[i][j] == '\n') {
if (printf("\\n") < 0) {
logerr("printf(): %s", strerror(errno));