Fix this by adding an empty hostname.
Signed-off-by: Jens Axboe <axboe@fb.com>
}
static void json_object_add_client_info(struct json_object *obj,
}
static void json_object_add_client_info(struct json_object *obj,
-struct fio_client *client)
+ struct fio_client *client)
- json_object_add_value_string(obj, "hostname", client->hostname);
+ const char *hostname = client->hostname ? client->hostname : "";
+
+ json_object_add_value_string(obj, "hostname", hostname);
json_object_add_value_int(obj, "port", client->port);
}
json_object_add_value_int(obj, "port", client->port);
}