mirror of
https://github.com/eclipse-mosquitto/mosquitto.git
synced 2026-08-18 01:48:32 +08:00
Fix Coverity Scan 1486935 Logically dead code
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user