xbps-uchroot: assert that strdup() does not fail.
This commit is contained in:
parent
7d6d1805f3
commit
4a97810c0b
@ -152,6 +152,7 @@ add_bindmount(char *bm)
|
|||||||
size_t len;
|
size_t len;
|
||||||
|
|
||||||
src = strdup(bm);
|
src = strdup(bm);
|
||||||
|
assert(src);
|
||||||
dest = strchr(bm, ':');
|
dest = strchr(bm, ':');
|
||||||
if (dest == NULL || *dest == '\0') {
|
if (dest == NULL || *dest == '\0') {
|
||||||
errno = EINVAL;
|
errno = EINVAL;
|
||||||
|
Loading…
Reference in New Issue
Block a user