diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2015-12-15 14:32:56 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2015-12-15 14:32:56 +0000 |
commit | 5806b799cfce00d9d811a645c9b606faa9a081c7 (patch) | |
tree | 501e99c0cfdbdb1fcdb4b81db7ce57e86e815c97 | |
parent | 72fa7bfbbe0566efbca0222fb21b3a0fc7a9e207 (diff) |
Copy state directly rather than dereferencing wl (which could be NULL).
-rw-r--r-- | usr.bin/tmux/cmd-find.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/tmux/cmd-find.c b/usr.bin/tmux/cmd-find.c index 73db4e7b5ab..3bc3131b731 100644 --- a/usr.bin/tmux/cmd-find.c +++ b/usr.bin/tmux/cmd-find.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd-find.c,v 1.25 2015/12/15 00:45:02 nicm Exp $ */ +/* $OpenBSD: cmd-find.c,v 1.26 2015/12/15 14:32:55 nicm Exp $ */ /* * Copyright (c) 2015 Nicholas Marriott <nicm@users.sourceforge.net> @@ -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; } |