From: Carsten Haitzler Date: Thu, 13 Jan 2005 13:48:38 +0000 (+0000) Subject: make sure those protocols handle unknown ones as 0 X-Git-Tag: submit/devel/efl/20131022.203902~21185 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fc9a86ee6e930036b3f8b13205b2403b42cb31f2;p=platform%2Fupstream%2Fefl.git make sure those protocols handle unknown ones as 0 SVN revision: 12951 --- 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 6b97157..d553f56 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 @@ -605,7 +605,7 @@ ecore_x_window_prop_protocol_list_get(Ecore_X_Window win, int *num_ret) return NULL; if ((!protos) || (protos_count <= 0)) return NULL; - prot_ret = malloc(protos_count * sizeof(Ecore_X_WM_Protocol)); + prot_ret = calloc(1, protos_count * sizeof(Ecore_X_WM_Protocol)); if (!prot_ret) { XFree(protos);