list_display: fix incorrect assignment

Commit 895a888865 erroneously left this around.

Noticed-by: Jakob Gruber <jakob.gruber@gmail.com>
Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
Dan McGee 2011-06-15 09:10:33 -05:00
parent 4664a095a4
commit 6eee3f6781
1 changed files with 1 additions and 1 deletions

View File

@ -456,7 +456,7 @@ void list_display(const char *title, const alpm_list_t *list)
const char *str = alpm_list_getdata(list);
printf("%s", str);
cols += string_length(str);
for(i = alpm_list_next(list), cols = len; i; i = alpm_list_next(i)) {
for(i = alpm_list_next(list); i; i = alpm_list_next(i)) {
const char *str = alpm_list_getdata(i);
int s = string_length(str);
/* wrap only if we have enough usable column space */