wayland: Don't check *alloc result
This commit is contained in:
parent
468714cab9
commit
6e8e94837d
@ -179,9 +179,6 @@ os_create_anonymous_file(off_t size)
|
|||||||
}
|
}
|
||||||
|
|
||||||
name = malloc(strlen(path) + sizeof(template));
|
name = malloc(strlen(path) + sizeof(template));
|
||||||
if (!name)
|
|
||||||
return -1;
|
|
||||||
|
|
||||||
strcpy(name, path);
|
strcpy(name, path);
|
||||||
strcat(name, template);
|
strcat(name, template);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user