xbps-uchroot: assert that strdup() does not fail.
This commit is contained in:
		@@ -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;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user