do not exit on failed smprintf

This commit is contained in:
Aaron Marcher authored and Aaron Marcher (drkhsh) committed 2016-09-18 16:54:46 +02:00
1 parent 2fdb2ede04
commit db07244cb8
1 file changed
+1 -1
+1 -1
View File
@@ -90,7 +90,7 @@ smprintf(const char *fmt, ...)
ret = malloc(++len); ret = malloc(++len);
if (ret == NULL) { if (ret == NULL) {
warn("Malloc failed."); warn("Malloc failed.");
exit(1); return "n/a";
} }
va_start(ap, fmt); va_start(ap, fmt);