billiob pushed a commit to branch master.

http://git.enlightenment.org/apps/terminology.git/commit/?id=157eff8d6ad444dad0491bf2c9698b639921962f

commit 157eff8d6ad444dad0491bf2c9698b639921962f
Author: Boris Faure <bill...@gmail.com>
Date:   Thu Jan 7 22:56:53 2016 +0100

    fix CID1347402 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 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;
           }

-- 


Reply via email to