Convert codebase to use emalloc.c utility-functions
This also definitely increases readability and makes OOM-conditions more consistent.
This commit is contained in:
@@ -18,7 +18,5 @@ apathmax(char **p, long *size)
|
||||
eprintf("pathconf:");
|
||||
}
|
||||
}
|
||||
|
||||
if (!(*p = malloc(*size)))
|
||||
eprintf("malloc:");
|
||||
*p = emalloc(*size);
|
||||
}
|
||||
|
Reference in New Issue
Block a user