=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/cmd-wait-for.c,v retrieving revision 1.20 retrieving revision 1.21 diff -c -r1.20 -r1.21 *** src/usr.bin/tmux/cmd-wait-for.c 2020/04/13 10:59:58 1.20 --- src/usr.bin/tmux/cmd-wait-for.c 2021/08/20 19:50:17 1.21 *************** *** 1,4 **** ! /* $OpenBSD: cmd-wait-for.c,v 1.20 2020/04/13 10:59:58 nicm Exp $ */ /* * Copyright (c) 2013 Nicholas Marriott --- 1,4 ---- ! /* $OpenBSD: cmd-wait-for.c,v 1.21 2021/08/20 19:50:17 nicm Exp $ */ /* * Copyright (c) 2013 Nicholas Marriott *************** *** 121,131 **** cmd_wait_for_exec(struct cmd *self, struct cmdq_item *item) { struct args *args = cmd_get_args(self); ! const char *name = args->argv[0]; ! struct wait_channel *wc, wc0; ! wc0.name = name; ! wc = RB_FIND(wait_channels, &wait_channels, &wc0); if (args_has(args, 'S')) return (cmd_wait_for_signal(item, name, wc)); --- 121,131 ---- cmd_wait_for_exec(struct cmd *self, struct cmdq_item *item) { struct args *args = cmd_get_args(self); ! const char *name = args_string(args, 0); ! struct wait_channel *wc, find; ! find.name = name; ! wc = RB_FIND(wait_channels, &wait_channels, &find); if (args_has(args, 'S')) return (cmd_wait_for_signal(item, name, wc));