aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/win.c
diff options
context:
space:
mode:
authorBoris Faure <billiob@gmail.com>2016-01-07 22:55:42 +0100
committerBoris Faure <billiob@gmail.com>2016-01-07 22:55:42 +0100
commit8fbd1242fb76fa2d1461577407ec478a39b50ed5 (patch)
tree971a113e1ac0d7d2f8c1e5f9dc64de81409a7938 /src/bin/win.c
parentfix CID1347400 Pointer to local outside scope (diff)
downloadterminology-8fbd1242fb76fa2d1461577407ec478a39b50ed5.tar.gz
fix CID1347401 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 1073206..cd80e76 100644
--- a/src/bin/win.c
+++ b/src/bin/win.c
@@ -2339,12 +2339,12 @@ _tab_new_cb(void *data,
Term *tm, *tm_new;
Win *wn = tc->wn;
char *wdir = NULL;
+ char buf[PATH_MAX];
// copy the current path to wdir if we should change the directory,
// passing wdir NULL otherwise:
if (wn->config->changedir_to_current)
{
- char buf[PATH_MAX];
tm = tc->focused_term_get(tc);
if (tm && termio_cwd_get(tm->termio, buf, sizeof(buf)))
wdir = buf;