From 6e8e94837dac7d3f9e2b2fdd1e493e45834fe13d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20=C3=85dahl?= Date: Sun, 28 Sep 2014 21:46:16 +0200 Subject: [PATCH] wayland: Don't check *alloc result --- src/wl_window.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/wl_window.c b/src/wl_window.c index 0fa16aa3..64a83d16 100644 --- a/src/wl_window.c +++ b/src/wl_window.c @@ -179,9 +179,6 @@ os_create_anonymous_file(off_t size) } name = malloc(strlen(path) + sizeof(template)); - if (!name) - return -1; - strcpy(name, path); strcat(name, template);