Fix wrong malloc error message
This commit is contained in:
parent
6deef0308a
commit
eaafd916be
@ -58,7 +58,7 @@ create_proc(struct loom *loom, const char *tracedir, const char *relpath)
|
|||||||
proc = malloc(sizeof(struct proc));
|
proc = malloc(sizeof(struct proc));
|
||||||
|
|
||||||
if (proc == NULL) {
|
if (proc == NULL) {
|
||||||
err("calloc failed:");
|
err("malloc failed:");
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -120,7 +120,7 @@ create_loom(struct system *sys, const char *relpath)
|
|||||||
loom = malloc(sizeof(struct loom));
|
loom = malloc(sizeof(struct loom));
|
||||||
|
|
||||||
if (loom == NULL) {
|
if (loom == NULL) {
|
||||||
err("calloc failed:");
|
err("malloc failed:");
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user