From 6eee3f6781b62f3a80697fbc7e3eeac0544e49e8 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Wed, 15 Jun 2011 09:10:33 -0500 Subject: list_display: fix incorrect assignment Commit 895a88886525d erroneously left this around. Noticed-by: Jakob Gruber Signed-off-by: Dan McGee --- src/pacman/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pacman/util.c b/src/pacman/util.c index a6d150fc..f695ffba 100644 --- a/src/pacman/util.c +++ b/src/pacman/util.c @@ -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 */ -- cgit v1.2.3-70-g09d2