Browse Source

die() on calloc failure

thanks Markus Teich and David!
Hiltjo Posthuma 5 years ago
parent
commit
24849acada
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      util.c

+ 1
- 1
util.c View File

@@ -12,7 +12,7 @@ ecalloc(size_t nmemb, size_t size)
12 12
 	void *p;
13 13
 
14 14
 	if (!(p = calloc(nmemb, size)))
15
-		perror(NULL);
15
+		die("calloc:");
16 16
 	return p;
17 17
 }
18 18
 

Loading…
Cancel
Save