diff --git a/src/configfile.c b/src/configfile.c index a42f4d6c..4f40a18f 100644 --- a/src/configfile.c +++ b/src/configfile.c @@ -1029,7 +1029,7 @@ void config_emit_threadstatus(WS_CONNINFO *pwsc, void *value, char *arg) { pss = ws_get_local_storage(pci); if(pss) { ws_writefd(pwsc,"%d%d%s%s\n", - pss->thread,pss->session,pss->host,pss->what); + pss->thread,pss->session,pss->host,pss->what ? pss->what : "Idle"); } pci=ws_thread_enum_next(config.server,&wste); }