summaryrefslogtreecommitdiff
path: root/src/core/expandos.c
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2000-12-10 05:15:57 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2000-12-10 05:15:57 +0000
commit9157c49b84445afdfdba489496ffdbfa58c05b59 (patch)
treeb6c6dd722062b7b27bc404ea24052fdcfc3582be /src/core/expandos.c
parent210409bc0b0d67b50153b757b5896488f328617f (diff)
downloadirssi-9157c49b84445afdfdba489496ffdbfa58c05b59.zip
$T in empty window crashed
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@987 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/core/expandos.c')
-rw-r--r--src/core/expandos.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/expandos.c b/src/core/expandos.c
index 1834323f..757f6b82 100644
--- a/src/core/expandos.c
+++ b/src/core/expandos.c
@@ -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) */