make sure those protocols handle unknown ones as 0
authorCarsten Haitzler <raster@rasterman.com>
Thu, 13 Jan 2005 13:48:38 +0000 (13:48 +0000)
committerCarsten Haitzler <raster@rasterman.com>
Thu, 13 Jan 2005 13:48:38 +0000 (13:48 +0000)
SVN revision: 12951

legacy/ecore/src/lib/ecore_x/ecore_x_window_prop.c

index 6b97157..d553f56 100644 (file)
@@ -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);