Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
Diffstat (limited to 'src/util')
-rw-r--r--src/util/pactree.c5
1 files changed, 3 insertions, 2 deletions
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), "",