=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/cmd-new-session.c,v retrieving revision 1.77 retrieving revision 1.78 diff -c -r1.77 -r1.78 *** src/usr.bin/tmux/cmd-new-session.c 2015/10/31 14:51:15 1.77 --- src/usr.bin/tmux/cmd-new-session.c 2015/12/08 08:34:18 1.78 *************** *** 1,4 **** ! /* $OpenBSD: cmd-new-session.c,v 1.77 2015/10/31 14:51:15 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott --- 1,4 ---- ! /* $OpenBSD: cmd-new-session.c,v 1.78 2015/12/08 08:34:18 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott *************** *** 119,125 **** /* Get the new session working directory. */ to_free = NULL; if (args_has(args, 'c')) { ! ft = format_create(); format_defaults(ft, cmd_find_client(cmdq, NULL, 1), NULL, NULL, NULL); to_free = cwd = format_expand(ft, args_get(args, 'c')); --- 119,125 ---- /* Get the new session working directory. */ to_free = NULL; if (args_has(args, 'c')) { ! ft = format_create(0); format_defaults(ft, cmd_find_client(cmdq, NULL, 1), NULL, NULL, NULL); to_free = cwd = format_expand(ft, args_get(args, 'c')); *************** *** 283,289 **** if ((template = args_get(args, 'F')) == NULL) template = NEW_SESSION_TEMPLATE; ! ft = format_create(); format_defaults(ft, cmd_find_client(cmdq, NULL, 1), s, NULL, NULL); --- 283,289 ---- if ((template = args_get(args, 'F')) == NULL) template = NEW_SESSION_TEMPLATE; ! ft = format_create(0); format_defaults(ft, cmd_find_client(cmdq, NULL, 1), s, NULL, NULL);