From b89cbfc687fc5a061542353db691481d4dc0df3a Mon Sep 17 00:00:00 2001 From: Carsten Haitzler Date: Sat, 25 Jun 2005 00:15:19 +0000 Subject: [PATCH] dont segv if get text prop fails and stack has garbage on it SVN revision: 15529 --- legacy/ecore/src/lib/ecore_x/ecore_x_window_prop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/legacy/ecore/src/lib/ecore_x/ecore_x_window_prop.c b/legacy/ecore/src/lib/ecore_x/ecore_x_window_prop.c index eab523ec61..1c456070c5 100644 --- a/legacy/ecore/src/lib/ecore_x/ecore_x_window_prop.c +++ b/legacy/ecore/src/lib/ecore_x/ecore_x_window_prop.c @@ -242,7 +242,7 @@ ecore_x_window_prop_string_get(Ecore_X_Window win, Ecore_X_Atom type) if (XGetTextProperty(_ecore_x_disp, win, &xtp, type)) { int items; - char **list; + char **list = NULL; Status s; if (xtp.encoding == ECORE_X_ATOM_UTF8_STRING)