summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/list.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/list.c b/src/list.c
index 348b1a1..6c2bd36 100644
--- a/src/list.c
+++ b/src/list.c
@@ -492,7 +492,7 @@ is_transient_ancestor (rp_window *win, rp_window *transient_for)
tmp = find_window (tmp->transient_for);
if (tmp == transient_for)
return 1;
- } while (tmp->transient);
+ } while (tmp && tmp->transient);
return 0;
}