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:
parent
4664a095a4
commit
6eee3f6781
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue