[ros-diffs] [sserapion] 44381: Don't use calloc, fixes building even more modules.

sserapion at svn.reactos.org sserapion at svn.reactos.org
Thu Dec 3 19:10:09 CET 2009


Author: sserapion
Date: Thu Dec  3 19:10:08 2009
New Revision: 44381

URL: http://svn.reactos.org/svn/reactos?rev=44381&view=rev
Log:
Don't use calloc, fixes building even more modules.

Modified:
    branches/ros-amd64-bringup/reactos/lib/3rdparty/mingw/dummy_mingwthrd.c

Modified: branches/ros-amd64-bringup/reactos/lib/3rdparty/mingw/dummy_mingwthrd.c
URL: http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/lib/3rdparty/mingw/dummy_mingwthrd.c?rev=44381&r1=44380&r2=44381&view=diff
==============================================================================
--- branches/ros-amd64-bringup/reactos/lib/3rdparty/mingw/dummy_mingwthrd.c [iso-8859-1] (original)
+++ branches/ros-amd64-bringup/reactos/lib/3rdparty/mingw/dummy_mingwthrd.c [iso-8859-1] Thu Dec  3 19:10:08 2009
@@ -42,7 +42,8 @@
 
   if (__mingwthr_cs_init == 0)
     return 0;
-  new_key = (__mingwthr_key_t *) calloc (1, sizeof (__mingwthr_key_t));
+  new_key = (__mingwthr_key_t *)malloc(sizeof (__mingwthr_key_t));
+  memset(new_key, 0,sizeof (__mingwthr_key_t));
   if (new_key == NULL)
     return -1;
   




More information about the Ros-diffs mailing list