Merge pull request #4742 from bogdandrutu/bug

Fix the bug that was causing census_initialization to never work.
pull/4744/head
Alistair Veitch 9 years ago
commit 15bad3fba7
  1. 7
      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; }

Loading…
Cancel
Save