graph: clear prio root iter on extra loop
authorJens Axboe <axboe@kernel.dk>
Wed, 21 Mar 2012 18:33:32 +0000 (19:33 +0100)
committerJens Axboe <axboe@kernel.dk>
Wed, 21 Mar 2012 18:33:32 +0000 (19:33 +0100)
Signed-off-by: Jens Axboe <axboe@kernel.dk>
graph.c

diff --git a/graph.c b/graph.c
index 9761a1a..84bc9f9 100644 (file)
--- a/graph.c
+++ b/graph.c
@@ -916,6 +916,7 @@ const char *graph_find_tooltip(struct graph *g, int ix, int iy)
        best_delta = UINT_MAX;
        i = g->labels;
        do {
+               INIT_PRIO_TREE_ITER(&iter);
                prio_tree_iter_init(&iter, &i->prio_tree, y, y);
 
                n = prio_tree_next(&iter);