Skip to content
Snippets Groups Projects
Commit 2803f741 authored by Bogdan Drutu's avatar Bogdan Drutu
Browse files

Fix the bug that was causing census_initialization to never work.

parent 0277270b
No related branches found
No related tags found
No related merge requests found
...@@ -39,12 +39,11 @@ int census_initialize(int features) { ...@@ -39,12 +39,11 @@ int census_initialize(int features) {
if (features_enabled != CENSUS_FEATURE_NONE) { if (features_enabled != CENSUS_FEATURE_NONE) {
return 1; return 1;
} }
if (features != CENSUS_FEATURE_NONE) { if (features == CENSUS_FEATURE_NONE) {
return 1; return 1;
} else {
features_enabled = features;
return 0;
} }
features_enabled = features;
return 0;
} }
void census_shutdown(void) { features_enabled = CENSUS_FEATURE_NONE; } void census_shutdown(void) { features_enabled = CENSUS_FEATURE_NONE; }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment