ecore_xcb: initializing the uninitialized variable.

Summary:
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.hebbar@samsung.com>

Reviewers: cedric

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D3154

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
This commit is contained in:
Srivardhan Hebbar 2015-10-08 12:21:53 +02:00 committed by Cedric BAIL
parent 84127a8963
commit 675ca609b5
1 changed files with 1 additions and 1 deletions

View File

@ -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;