From: Michael Stapelberg Date: Mon, 9 Mar 2009 05:41:04 +0000 (+0100) Subject: Bugfix: Don’t strcmp() if client->name == NULL X-Git-Tag: 3.a~55 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=65595c61a801c80cd0f8861f7a61454121fa9551;p=i3%2Fi3 Bugfix: Don’t strcmp() if client->name == NULL --- 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;