diff options
author | Alistair Veitch <alistair.veitch@gmail.com> | 2016-01-15 10:47:56 -0800 |
---|---|---|
committer | Alistair Veitch <alistair.veitch@gmail.com> | 2016-01-15 10:47:56 -0800 |
commit | 15bad3fba745043aa9b1cef83e4929486b40a548 (patch) | |
tree | 11624fe11d3d745cb55d755d4da41587b1ef9cda /src | |
parent | ecda59b653565fd6a2700767bb7218d51dd68e13 (diff) | |
parent | c7302006f2294ff3b2d36e03a11b27ead76dc4b1 (diff) |
Merge pull request #4742 from bogdandrutu/bug
Fix the bug that was causing census_initialization to never work.
Diffstat (limited to 'src')
-rw-r--r-- | src/core/census/initialize.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/core/census/initialize.c b/src/core/census/initialize.c index 8d60f790eb..989708d42c 100644 --- a/src/core/census/initialize.c +++ b/src/core/census/initialize.c @@ -39,12 +39,11 @@ int census_initialize(int features) { if (features_enabled != CENSUS_FEATURE_NONE) { return 1; } - if (features != CENSUS_FEATURE_NONE) { + if (features == CENSUS_FEATURE_NONE) { return 1; - } else { - features_enabled = features; - return 0; } + features_enabled = features; + return 0; } void census_shutdown(void) { features_enabled = CENSUS_FEATURE_NONE; } |