Skip to content

Commit

Permalink
Fixes offset parameter loading.
Browse files Browse the repository at this point in the history
  • Loading branch information
BlockoS committed Jan 8, 2018
1 parent 8013bba commit bdb0bf5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sectionsloader.c
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ static int parseSection(const json_t *obj, Section *out) {
/* offset */
tmp = json_object_get(obj, "offset");
if (tmp) {
if (!json_validateInt(tmp, &num)) {
if (!json_validateInt(tmp, &out->offset)) {
ERROR_MSG("Invalid or missing offset value.");
return 0;
}
Expand Down

0 comments on commit bdb0bf5

Please sign in to comment.