diff options
author | nicm <nicm> | 2015-12-15 14:32:55 +0000 |
---|---|---|
committer | nicm <nicm> | 2015-12-15 14:32:55 +0000 |
commit | 909b737289ee24f1c78c13c10d728a1cf990912d (patch) | |
tree | f1f6f81f101cb066ef07c7c69e80dd50239446d7 | |
parent | ac9778395feb8551e0acbd2f32465b65aeba5e05 (diff) | |
download | rtmux-909b737289ee24f1c78c13c10d728a1cf990912d.tar.gz rtmux-909b737289ee24f1c78c13c10d728a1cf990912d.tar.bz2 rtmux-909b737289ee24f1c78c13c10d728a1cf990912d.zip |
Copy state directly rather than dereferencing wl (which could be NULL).
-rw-r--r-- | cmd-find.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -834,8 +834,8 @@ cmd_find_copy_state(struct cmd_find_state *dst, struct cmd_find_state *src) { dst->s = src->s; dst->wl = src->wl; - dst->idx = dst->wl->idx; - dst->w = dst->wl->window; + dst->idx = src->idx; + dst->w = src->w; dst->wp = src->wp; } |