Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
mattmundell authored and bjoernricks committed Feb 6, 2025
1 parent 0cd4ab2 commit 2da25a6
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions util/json.c
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,12 @@ gvm_json_obj_check_int (cJSON *obj, const gchar *key, int *val)
cJSON *item;

item = cJSON_GetObjectItem (obj, key);
if (item && cJSON_IsNumber (item)) {
if (val)
*val = item->valueint;
return 0;
}
if (item && cJSON_IsNumber (item))
{
if (val)
*val = item->valueint;
return 0;
}
return 1;
}

Expand Down

0 comments on commit 2da25a6

Please sign in to comment.