aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/win.c
diff options
context:
space:
mode:
authorBoris Faure <billiob@gmail.com>2016-01-07 22:56:53 +0100
committerBoris Faure <billiob@gmail.com>2016-01-07 22:56:53 +0100
commit157eff8d6ad444dad0491bf2c9698b639921962f (patch)
treeb63eb4989e32dc4fb4622b7c912ee84a4a318be8 /src/bin/win.c
parentfix CID1347401 Pointer to local outside scope (diff)
downloadterminology-157eff8d6ad444dad0491bf2c9698b639921962f.tar.gz
fix CID1347402 Pointer to local outside scope
Diffstat (limited to 'src/bin/win.c')
-rw-r--r--src/bin/win.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/win.c b/src/bin/win.c
index cd80e76..5c39799 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;
}