diff --git a/lib/header_internal.c b/lib/header_internal.c index 749d4c5..ef93793 100644 --- a/lib/header_internal.c +++ b/lib/header_internal.c @@ -21,7 +21,7 @@ char ** headerGetLangs(Header h) if ((table = (char **)xcalloc((count+1), sizeof(char *))) == NULL) return NULL; - for (i = 0, e = *s; i < count > 0; i++, e += strlen(e)+1) + for (i = 0, e = *s; i < count; i++, e += strlen(e)+1) table[i] = e; table[count] = NULL;