Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
this line is not only UGLY, but it exists a path where it could be dangerous. Good...
authormquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Fri, 17 Dec 2010 09:22:44 +0000 (09:22 +0000)
committermquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Fri, 17 Dec 2010 09:22:44 +0000 (09:22 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@9284 48e7efb5-ca39-0410-a469-dd3cf9ba447f

include/xbt/sysdep.h

index a04add7..33aefed 100644 (file)
@@ -101,7 +101,7 @@ void *xbt_malloc0(size_t n)
 static inline __attribute__ ((always_inline))
 void *xbt_realloc(void *p, size_t s)
 {
-  void *res = res;
+  void *res = NULL;
   //if (s==0) xbt_die("realloc(0) is not portable");
   if (s) {
     if (p) {