diff options
Diffstat (limited to 'src/util/pactree.c')
-rw-r--r-- | src/util/pactree.c | 5 |
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), "", |