Fix Coverity Scan 1486935 Logically dead code

This commit is contained in:
Roger A. Light
2022-03-24 08:11:11 +00:00
parent 42d9390d04
commit c70a925f29
+1 -1
View File
@@ -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);