=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/cmd-parse.y,v retrieving revision 1.42 retrieving revision 1.43 diff -c -r1.42 -r1.43 *** src/usr.bin/tmux/cmd-parse.y 2021/08/22 13:00:28 1.42 --- src/usr.bin/tmux/cmd-parse.y 2021/08/23 11:04:21 1.43 *************** *** 1,4 **** ! /* $OpenBSD: cmd-parse.y,v 1.42 2021/08/22 13:00:28 nicm Exp $ */ /* * Copyright (c) 2019 Nicholas Marriott --- 1,4 ---- ! /* $OpenBSD: cmd-parse.y,v 1.43 2021/08/23 11:04:21 nicm Exp $ */ /* * Copyright (c) 2019 Nicholas Marriott *************** *** 426,432 **** arg = xcalloc(1, sizeof *arg); arg->type = CMD_PARSE_STRING; ! arg->string = xstrdup($2); TAILQ_INSERT_HEAD(&$$->arguments, arg, entry); } | optional_assignment TOKEN arguments --- 426,432 ---- arg = xcalloc(1, sizeof *arg); arg->type = CMD_PARSE_STRING; ! arg->string = $2; TAILQ_INSERT_HEAD(&$$->arguments, arg, entry); } | optional_assignment TOKEN arguments *************** *** 443,449 **** arg = xcalloc(1, sizeof *arg); arg->type = CMD_PARSE_STRING; ! arg->string = xstrdup($2); TAILQ_INSERT_HEAD(&$$->arguments, arg, entry); } --- 443,449 ---- arg = xcalloc(1, sizeof *arg); arg->type = CMD_PARSE_STRING; ! arg->string = $2; TAILQ_INSERT_HEAD(&$$->arguments, arg, entry); } *************** *** 543,555 **** { $$ = xcalloc(1, sizeof *$$); $$->type = CMD_PARSE_STRING; ! $$->string = xstrdup($1); } | EQUALS { $$ = xcalloc(1, sizeof *$$); $$->type = CMD_PARSE_STRING; ! $$->string = xstrdup($1); } | '{' argument_statements { --- 543,555 ---- { $$ = xcalloc(1, sizeof *$$); $$->type = CMD_PARSE_STRING; ! $$->string = $1; } | EQUALS { $$ = xcalloc(1, sizeof *$$); $$->type = CMD_PARSE_STRING; ! $$->string = $1; } | '{' argument_statements { *************** *** 817,823 **** goto out; values[count].type = ARGS_COMMANDS; values[count].cmdlist = pr->cmdlist; - values[count].cmdlist->references++; break; } count++; --- 817,822 ----