diff options
author | Nicholas Marriott <nicm@openbsd.org> | 2010-01-07 20:28:01 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@openbsd.org> | 2010-01-07 20:28:01 +0000 |
commit | ac46e876851c2180566583084d85f2c5327f0ab6 (patch) | |
tree | 5a635bf5ade1a3d8489b66ba537f04bb66504bc9 /layout-string.c | |
parent | 526bb6f3e949fb2c530cd14b87869e693147463e (diff) | |
download | rtmux-ac46e876851c2180566583084d85f2c5327f0ab6.tar.gz rtmux-ac46e876851c2180566583084d85f2c5327f0ab6.tar.bz2 rtmux-ac46e876851c2180566583084d85f2c5327f0ab6.zip |
Don't return the root cell if the string doesn't match.
Diffstat (limited to 'layout-string.c')
-rw-r--r-- | layout-string.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/layout-string.c b/layout-string.c index acaf09e4..8955fd29 100644 --- a/layout-string.c +++ b/layout-string.c @@ -42,7 +42,9 @@ struct layout_cell *layout_find_bottomright(struct layout_cell *); struct layout_cell * layout_find_string(struct window *w, const char *s) { - struct layout_cell *lc = w->layout_root; + struct layout_cell *lc; + + lc = NULL; if (strcasecmp(s, "top") == 0) lc = layout_find_top(lc); |