aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'qdepends.c')
-rw-r--r--qdepends.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/qdepends.c b/qdepends.c
index 1ecfab5b..6afcb1c4 100644
--- a/qdepends.c
+++ b/qdepends.c
@@ -416,6 +416,7 @@ int qdepends_main(int argc, char **argv)
array_for_each(overlays, n, overlay) {
t = tree_open(portroot, overlay);
if (t != NULL) {
+ state.rtree = NULL;
if (state.resolve)
state.rtree = tree_open(portroot, overlay);
if (!(state.qmode & QMODE_REVERSE) && array_cnt(atoms) > 0) {