=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/Attic/cmd-set-hook.c,v retrieving revision 1.9 retrieving revision 1.10 diff -c -r1.9 -r1.10 *** src/usr.bin/tmux/Attic/cmd-set-hook.c 2016/10/16 19:04:05 1.9 --- src/usr.bin/tmux/Attic/cmd-set-hook.c 2017/01/15 22:00:56 1.10 *************** *** 1,4 **** ! /* $OpenBSD: cmd-set-hook.c,v 1.9 2016/10/16 19:04:05 nicm Exp $ */ /* * Copyright (c) 2012 Thomas Adam --- 1,4 ---- ! /* $OpenBSD: cmd-set-hook.c,v 1.10 2017/01/15 22:00:56 nicm Exp $ */ /* * Copyright (c) 2012 Thomas Adam *************** *** 115,121 **** cmdq_error(item, "no command to set hook: %s", name); return (CMD_RETURN_ERROR); } ! if (cmd_string_parse(cmd, &cmdlist, NULL, 0, &cause) != 0) { if (cause != NULL) { cmdq_error(item, "%s", cause); free(cause); --- 115,122 ---- cmdq_error(item, "no command to set hook: %s", name); return (CMD_RETURN_ERROR); } ! cmdlist = cmd_string_parse(cmd, NULL, 0, &cause); ! if (cmdlist == NULL) { if (cause != NULL) { cmdq_error(item, "%s", cause); free(cause);