mirror of
https://git.code.sf.net/p/ngspice/ngspice
synced 2026-08-22 13:57:32 +02:00
realloc does work, even with NULL argument
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user