From 5b306f0390ba0b95d341b1a42e2983e25ba574ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Camilla=20L=C3=B6wy?= Date: Fri, 3 Mar 2017 14:22:38 +0100 Subject: [PATCH] Cleanup --- src/mir_window.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/mir_window.c b/src/mir_window.c index a3b383be..00d50ada 100644 --- a/src/mir_window.c +++ b/src/mir_window.c @@ -443,10 +443,9 @@ void _glfwPlatformDestroyWindow(_GLFWwindow* window) void _glfwPlatformSetWindowTitle(_GLFWwindow* window, const char* title) { MirSurfaceSpec* spec; - const char* e_title = title ? title : ""; spec = mir_connection_create_spec_for_changes(_glfw.mir.connection); - mir_surface_spec_set_name(spec, e_title); + mir_surface_spec_set_name(spec, title); mir_surface_apply_spec(window->mir.surface, spec); mir_surface_spec_release(spec);