summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-06-15 09:10:33 -0500
committerDan McGee <dan@archlinux.org>2011-06-15 09:11:47 -0500
commit6eee3f6781b62f3a80697fbc7e3eeac0544e49e8 (patch)
treefdbae6416e359eb6fb7d744517123fe62c5a59f8 /src
parent4664a095a497de1b47d980863228860a6d19f286 (diff)
list_display: fix incorrect assignment
Commit 895a88886525d erroneously left this around. Noticed-by: Jakob Gruber <jakob.gruber@gmail.com> Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'src')
-rw-r--r--src/pacman/util.c2
1 files changed, 1 insertions, 1 deletions
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 */