1
0
mirror of https://github.com/irssi/irssi.git synced 2024-12-04 14:46:39 -05:00

$T in empty window crashed

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@987 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2000-12-10 05:15:57 +00:00 committed by cras
parent 210409bc0b
commit 9157c49b84

View File

@ -251,7 +251,7 @@ static char *expando_serverversion(SERVER_REC *server, void *item, int *free_ret
/* target of current input (channel or QUERY nickname) */
static char *expando_target(SERVER_REC *server, void *item, int *free_ret)
{
return ((WI_ITEM_REC *) item)->name;
return item == NULL ? "" : ((WI_ITEM_REC *) item)->name;
}
/* client release date (numeric version string) */