diff options
author | Timo Sirainen <cras@irssi.org> | 2001-06-11 23:12:43 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2001-06-11 23:12:43 +0000 |
commit | 3f2b189a4c0abc76065b9038668994f815e1f189 (patch) | |
tree | 424b4486830397eb27d98fe530221e0accf6f160 /src/fe-common | |
parent | 651972ab335b3dbebaf8777b1475348937a9e5b0 (diff) | |
download | irssi-3f2b189a4c0abc76065b9038668994f815e1f189.zip |
/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
Diffstat (limited to 'src/fe-common')
-rw-r--r-- | src/fe-common/core/window-commands.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |