Don't try to set the split ratio of NULL

Fixes #215
This commit is contained in:
Bastien Dejean 2015-02-22 10:19:24 +01:00
parent 9f2065540e
commit 931a519947

View file

@ -118,7 +118,7 @@ void manage_window(xcb_window_t win, rule_consequence_t *csq, int fd)
}
}
if (csq->split_ratio != 0) {
if (csq->split_ratio != 0 && f != NULL) {
f->split_ratio = csq->split_ratio;
}