index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
-rw-r--r-- | src/util/pactree.c | 5 |
diff --git a/src/util/pactree.c b/src/util/pactree.c index ae0c8a07..1ed40250 100644 --- a/src/util/pactree.c +++ b/src/util/pactree.c @@ -336,15 +336,16 @@ static void print_text(const char *pkg, const char *provision, tdepth *depth, int last) { const char* tip = last ? style->last : style->tip; + int level = 0; if(!pkg && !provision) { /* not much we can do */ return; } /* print limbs */ - while(depth->prev) + while(depth->prev) { depth = depth->prev; - int level = 0; + } printf("%s", color->branch1); while(depth->next){ printf("%*s%-*s", style->indent * (depth->level - level), "", |