From c70a925f29d8a11bbaaf37c09c715cf35d7c58d7 Mon Sep 17 00:00:00 2001 From: "Roger A. Light" Date: Wed, 23 Mar 2022 21:56:00 +0000 Subject: [PATCH] Fix Coverity Scan 1486935 Logically dead code --- client/sub_client_output.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/sub_client_output.c b/client/sub_client_output.c index a499fdeb..ecda4236 100644 --- a/client/sub_client_output.c +++ b/client/sub_client_output.c @@ -235,7 +235,7 @@ static int json_print_properties(cJSON *root, const mosquitto_property *properti } user_json = cJSON_CreateObject(); - if(user_props == NULL){ + if(user_json == NULL){ return MOSQ_ERR_NOMEM; } cJSON_AddItemToArray(user_props, user_json);