cleanup: remove unused variable

This commit is contained in:
Rainer Gerhards 2024-11-15 17:19:28 +01:00
parent ebdddad8d8
commit 5c23b496a4
No known key found for this signature in database
GPG Key ID: 0CB6B2A8BE80B499

View File

@ -460,12 +460,11 @@ CODESTARTdoAction
json_object *temp_json = total_json;
json_object *sub_obj = temp_json;
int j = 0;
const char *SEP = "!";
/* find lowest level JSON object */
char *s = strtok_r(buf, SEP, &strtok_save);
for (; s != NULL; j++) {
while(s != NULL) {
json_object_object_get_ex(temp_json, s, &sub_obj);
temp_json = sub_obj;
s = strtok_r(NULL, SEP, &strtok_save);