From c0c0d172a1958bd962e67fb295bc4e7dd1b08db9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Camilla=20L=C3=B6wy?= Date: Thu, 24 Mar 2022 21:24:34 +0100 Subject: [PATCH] Wayland: Remove check for error that cannot happen Famous last words. (cherry picked from commit 967282c2e664ccaaa074590491108d9100b51123) --- src/wl_window.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/wl_window.c b/src/wl_window.c index da7b271e..2c367ace 100644 --- a/src/wl_window.c +++ b/src/wl_window.c @@ -1734,14 +1734,6 @@ static void dataSourceHandleSend(void* userData, } char* string = _glfw.wl.clipboardString; - if (!string) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "Wayland: Copy requested from an invalid string"); - close(fd); - return; - } - size_t length = strlen(string); while (length > 0)