Skip to content

Commit

Permalink
Fix parsing of fault_badpeernet_interval option
Browse files Browse the repository at this point in the history
Signed-off-by: Delio Brignoli <[email protected]>
  • Loading branch information
dbrignoli authored and richardcochran committed May 30, 2013
1 parent 026d422 commit 3f8471e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config.c
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ static enum parser_result parse_pod_setting(const char *option,
pod->flt_interval_pertype[FT_BAD_PEER_NETWORK].type = FTMO_LINEAR_SECONDS;
if (!strcasecmp("ASAP", value)) {
pod->flt_interval_pertype[FT_BAD_PEER_NETWORK].val = 0;
} else if (1 != sscanf(value, "%d", &val)) {
} else if (1 == sscanf(value, "%d", &val)) {
pod->flt_interval_pertype[FT_BAD_PEER_NETWORK].val = val;
} else {
return BAD_VALUE;
Expand Down

0 comments on commit 3f8471e

Please sign in to comment.