realloc does work, even with NULL argument

This commit is contained in:
rlar
2010-10-27 16:40:10 +00:00
parent 29f34fc734
commit de35847146
3 changed files with 7 additions and 2 deletions
+1 -1
View File
@@ -120,7 +120,7 @@ MIFgetValue (
return(NULL);
}
val.v.numValue = 0;
val.v.vec.iVec = (int *) MALLOC(1); /* just so that realloc doesn't bomb */
val.v.vec.iVec = NULL;
}