summaryrefslogtreecommitdiff
path: root/src/core/expandos.c
diff options
context:
space:
mode:
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) */