Fix parsing of fault_badpeernet_interval option

Signed-off-by: Delio Brignoli <dbrignoli@audioscience.com>
master
Delio Brignoli 2013-05-29 13:20:36 +02:00 committed by Richard Cochran
parent 026d422f8f
commit 3f8471ea68
1 changed files with 1 additions and 1 deletions

View File

@ -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;