From fc9a86ee6e930036b3f8b13205b2403b42cb31f2 Mon Sep 17 00:00:00 2001 From: Carsten Haitzler Date: Thu, 13 Jan 2005 13:48:38 +0000 Subject: [PATCH] make sure those protocols handle unknown ones as 0 SVN revision: 12951 --- 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 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); -- 2.7.4