lib/header_internal.c (headerGetLangs): Fix stupid X<=Y<=Z comparison

(cherry picked from commit 4ce1b4bead)
This commit is contained in:
Дмитрий Левин 2008-10-20 11:49:04 +00:00 committed by Alexey Tourbin
parent d32efd14bf
commit 04d5860a7b

View File

@ -21,7 +21,7 @@ char ** headerGetLangs(Header h)
if ((table = (char **)xcalloc((count+1), sizeof(char *))) == NULL) if ((table = (char **)xcalloc((count+1), sizeof(char *))) == NULL)
return 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[i] = e;
table[count] = NULL; table[count] = NULL;