json_object_object_add(jobj_main, "FreeInodesCountOnDevice",
json_object_new_int(reports_with_stats->free_inodes_count));
- json_object_object_add(jobj_main, "ClientMountPath",
- json_object_new_string(reports_with_stats->client_mount_path));
+ if (reports_with_stats->client_mount_path) {
+ json_object_object_add(jobj_main, "ClientMountPath",
+ json_object_new_string(
+ reports_with_stats->client_mount_path));
+ }
for (i = 0; i < LS3_STATS_TYPE_TOTAL_COUNT_REPORT; i++) {
struct json_object *jobj_report;