From 2163bbb77580b8f4f208c061bb9fb3d35a4cf35d Mon Sep 17 00:00:00 2001 From: Boris Faure Date: Thu, 7 Jan 2016 22:54:10 +0100 Subject: [PATCH] fix CID1347400 Pointer to local outside scope --- src/bin/win.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/win.c b/src/bin/win.c index 640d136b..1073206d 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; }