]> jfr.im git - irc/quakenet/newserv.git/blobdiff - lib/array.c
CHANSERV: remove E type escapes
[irc/quakenet/newserv.git] / lib / array.c
index b427fc9d35d98b62a7d0e9226328e9733c231898..86b9432aa48bc40d738055144918b4856c3c22af 100644 (file)
@@ -44,10 +44,8 @@ int array_getfreeslot(array *a) {
     /* we can be evil and use the same pointer as we're gonna exit if we fail */
     a->content = realloc(a->content, a->capacity * a->itemsize);
 
-    if(!a->content) {
-       Error("array", ERR_FATAL, "Array resize failed.");
-       exit(1);
-    }
+    if(!a->content)
+       Error("array", ERR_STOP, "Array resize failed.");
   }
 
   return a->cursi++;