From 3f2b189a4c0abc76065b9038668994f815e1f189 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Mon, 11 Jun 2001 23:12:43 +0000 Subject: [PATCH] /WINDOW SERVER -sticky / -unsticky crashed if the tag wasn't given and there was no active server in window git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1553 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/fe-common/core/window-commands.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fe-common/core/window-commands.c b/src/fe-common/core/window-commands.c index 17cf65e5..29ed437b 100644 --- a/src/fe-common/core/window-commands.c +++ b/src/fe-common/core/window-commands.c @@ -224,7 +224,7 @@ static void cmd_window_server(const char *data) "window server", &optlist, &tag)) return; - if (*tag == '\0' && + if (*tag == '\0' && active_win->active_server != NULL && (g_hash_table_lookup(optlist, "sticky") != NULL || g_hash_table_lookup(optlist, "unsticky") != NULL)) { tag = active_win->active_server->tag;