This commit is contained in:
17
badforsyntax.diff
Normal file
17
badforsyntax.diff
Normal file
@@ -0,0 +1,17 @@
|
||||
This fixes a typo that caused a compiler warning [#178055].
|
||||
|
||||
Already included in rpm-4.4.7.
|
||||
|
||||
Index: ./rpmdb/header_internal.c
|
||||
===================================================================
|
||||
--- ./rpmdb/header_internal.c
|
||||
+++ ./rpmdb/header_internal.c
|
||||
@@ -22,7 +22,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;
|
||||
|
Reference in New Issue
Block a user