From 65595c61a801c80cd0f8861f7a61454121fa9551 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Mon, 9 Mar 2009 06:41:04 +0100 Subject: [PATCH] =?utf8?q?Bugfix:=20Don=E2=80=99t=20strcmp()=20if=20client?= =?utf8?q?->name=20=3D=3D=20NULL?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/handlers.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/handlers.c b/src/handlers.c index 58e8c068..118b7391 100644 --- a/src/handlers.c +++ b/src/handlers.c @@ -503,7 +503,7 @@ int handle_windowname_change(void *data, xcb_connection_t *conn, uint8_t state, free(new_name); /* Check if they are the same and don’t update if so */ - if (new_len == client->name_len && strcmp(client->name, new_name) == 0) { + if (new_len == client->name_len && client->name != NULL && strcmp(client->name, new_name) == 0) { LOG("Name did not change, not updating\n"); free(ucs2_name); return; -- 2.39.5