From: Derek Foreman Date: Thu, 2 Jul 2015 21:54:40 +0000 (-0400) Subject: Init some vars to NULL in compositor create X-Git-Tag: upstream/0.20.0~632 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=528d8b31fc91a7fae3a77ec02e06013ae6ed0695;p=platform%2Fupstream%2Fenlightenment.git Init some vars to NULL in compositor create Summary: In some cases these end up uninitialized and we crash. Reviewers: zmike Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D2788 --- diff --git a/src/bin/e_comp_wl.c b/src/bin/e_comp_wl.c index 6e9a14c..950586a 100644 --- a/src/bin/e_comp_wl.c +++ b/src/bin/e_comp_wl.c @@ -2497,7 +2497,7 @@ _e_comp_wl_compositor_create(void) Ecore_X_Window root = 0; int len = 0; unsigned char *dat; - char *rules, *model, *layout; + char *rules = NULL, *model = NULL, *layout = NULL; if ((ekbd = e_xkb_layout_get())) {