cedric pushed a commit to branch master.


commit 675ca609b519c7de66deab3c071244b1392e09bb
Author: Srivardhan Hebbar <sri.heb...@samsung.com>
Date:   Thu Oct 8 12:21:53 2015 +0200

    ecore_xcb: initializing the uninitialized variable.
    realwin is uninitialized and is being checked against 0 at 384. It is set 
at 377 only if win2 == win, else it remains uninitialized. So initializing it 
to NULL.
    Signed-off-by: Srivardhan Hebbar <sri.heb...@samsung.com>
    Reviewers: cedric
    Subscribers: cedric
    Differential Revision: https://phab.enlightenment.org/D3154
    Signed-off-by: Cedric BAIL <ced...@osg.samsung.com>
 src/lib/ecore_x/xcb/ecore_xcb_window.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lib/ecore_x/xcb/ecore_xcb_window.c 
index ce3e5ed..e877fdb 100644
--- a/src/lib/ecore_x/xcb/ecore_xcb_window.c
+++ b/src/lib/ecore_x/xcb/ecore_xcb_window.c
@@ -337,7 +337,7 @@ ecore_x_window_override_argb_new(Ecore_X_Window parent, int 
x, int y, int w, int
 EAPI Ecore_X_Window
 ecore_x_window_permanent_new(Ecore_X_Window parent, Ecore_X_Atom unique_atom)
-   Ecore_X_Window win, win2, realwin;
+   Ecore_X_Window win, win2, realwin = NULL;
    uint32_t mask, mask_list[9];
    xcb_get_property_reply_t *reply;
    xcb_get_property_cookie_t cookie;


Reply via email to