diff --git a/src/bin/win.c b/src/bin/win.c index cd80e766..5c397990 100644 --- a/src/bin/win.c +++ b/src/bin/win.c @@ -953,6 +953,7 @@ _win_split(Term_Container *tc, Term_Container *child, Term *tm_new, *tm; Term_Container *tc_split, *tc_solo_new; char *wdir = NULL; + char buf[PATH_MAX]; Evas_Object *base; Evas_Object *o; @@ -964,7 +965,6 @@ _win_split(Term_Container *tc, Term_Container *child, tm = from; else tm = tc->focused_term_get(tc); - char buf[PATH_MAX]; if (tm && termio_cwd_get(tm->termio, buf, sizeof(buf))) wdir = buf; }