aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBoris Faure <billiob@gmail.com>2016-01-07 21:54:10 (GMT)
committerBoris Faure <billiob@gmail.com>2016-01-07 21:54:54 (GMT)
commit2163bbb77580b8f4f208c061bb9fb3d35a4cf35d (patch)
tree00e86a6e50b3adde4cbbcd60c87cbedc2e62f280
parentOption to disable cd to current tab dir. (diff)
downloadterminology-2163bbb77580b8f4f208c061bb9fb3d35a4cf35d.tar.gz
fix CID1347400 Pointer to local outside scope
-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 640d136..1073206 100644
--- a/src/bin/win.c
+++ b/src/bin/win.c
@@ -1445,6 +1445,7 @@ _split_split(Term_Container *tc, Term_Container *child,
{
Term *tm_new, *tm;
char *wdir = NULL;
+ char buf[PATH_MAX];
Term_Container *tc_split, *tc_solo_new;
Evas_Object *obj_split;
@@ -1456,7 +1457,6 @@ _split_split(Term_Container *tc, Term_Container *child,
tm = from;
else
tm = child->focused_term_get(child);
- char buf[PATH_MAX];
if (tm && termio_cwd_get(tm->termio, buf, sizeof(buf)))
wdir = buf;
}