From 35b2579dcbff6dfbc324d33ba47e2e4cc89b13e0 Mon Sep 17 00:00:00 2001 From: Bram Matthys Date: Mon, 23 May 2022 12:55:48 +0200 Subject: [PATCH] Fix compiler warning --- src/log.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/log.c b/src/log.c index 8ca047f8c..485fb0049 100644 --- a/src/log.c +++ b/src/log.c @@ -600,7 +600,7 @@ void json_expand_client(json_t *j, const char *key, Client *client, int detail) json_object_set_new(user, "realname", json_string_unreal(client->info)); if (has_user_mode(client, 'x') && client->user->virthost && strcmp(client->user->virthost, client->user->realhost)) json_object_set_new(user, "vhost", json_string_unreal(client->user->virthost)); - if (client->user->cloakedhost) + if (*client->user->cloakedhost) json_object_set_new(user, "cloakedhost", json_string_unreal(client->user->cloakedhost)); if (client->uplink) json_object_set_new(user, "servername", json_string_unreal(client->uplink->name));