diff --git a/bin/xbps-uchroot/main.c b/bin/xbps-uchroot/main.c index f9e1f12b..fa2a6570 100644 --- a/bin/xbps-uchroot/main.c +++ b/bin/xbps-uchroot/main.c @@ -152,6 +152,7 @@ add_bindmount(char *bm) size_t len; src = strdup(bm); + assert(src); dest = strchr(bm, ':'); if (dest == NULL || *dest == '\0') { errno = EINVAL;