wslog: Fix representation of null domain

Map "" to "(none)", besides NULL.
This commit is contained in:
João Valverde 2021-07-09 23:39:11 +01:00
parent d48c7e9305
commit 6498f1fce5
1 changed files with 1 additions and 1 deletions

View File

@ -164,7 +164,7 @@ static enum ws_log_level string_to_log_level(const char *str_level)
WS_RETNONNULL
static inline const char *domain_to_string(const char *domain)
{
return (domain == NULL) ? "(none)" : domain;
return DOMAIN_UNDEFED(domain) ? "(none)" : domain;
}