aboutsummaryrefslogtreecommitdiff
path: root/window.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2015-02-14 23:54:07 +0000
committerThomas Adam <thomas@xteddy.org>2015-02-14 23:54:07 +0000
commitffb83d23e17e99589f46edc3e08f78dd32936e4e (patch)
treeeaa685cd8ce41ba6c3114037bf42d22999ae4f9a /window.c
parentb4750e4c352f70ce515bed1279d8561a288f1f1b (diff)
parent4d05d8830482f8d5b5f812d082f1332090fcf027 (diff)
downloadrtmux-ffb83d23e17e99589f46edc3e08f78dd32936e4e.tar.gz
rtmux-ffb83d23e17e99589f46edc3e08f78dd32936e4e.tar.bz2
rtmux-ffb83d23e17e99589f46edc3e08f78dd32936e4e.zip
Merge branch 'obsd-master'
Conflicts: Makefile
Diffstat (limited to 'window.c')
-rw-r--r--window.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/window.c b/window.c
index 54129634..fff2cfc3 100644
--- a/window.c
+++ b/window.c
@@ -262,7 +262,7 @@ window_find_by_id(u_int id)
for (i = 0; i < ARRAY_LENGTH(&windows); i++) {
w = ARRAY_ITEM(&windows, i);
- if (w->id == id)
+ if (w != NULL && w->id == id)
return (w);
}
return (NULL);