diff options
author | Alistair Veitch <aveitch@google.com> | 2016-01-15 17:57:56 -0800 |
---|---|---|
committer | Alistair Veitch <aveitch@google.com> | 2016-01-15 17:57:56 -0800 |
commit | 0923126cf85a83dab29bbd21f66c5df1f9a56bf8 (patch) | |
tree | 27e80289f06ab43187a30ac58d8a44a5b616299e /src/core/census | |
parent | 04de8c16d2f1fc4f9c97e460ea1f450872981d58 (diff) | |
parent | 7e098a272ccb2b2ac06464064cb59fca857e2e2a (diff) |
Merge branch 'master' into tag_set
Diffstat (limited to 'src/core/census')
-rw-r--r-- | src/core/census/initialize.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/core/census/initialize.c b/src/core/census/initialize.c index 8d60f790eb..b7af714e0b 100644 --- a/src/core/census/initialize.c +++ b/src/core/census/initialize.c @@ -1,6 +1,6 @@ /* * - * Copyright 2015, Google Inc. + * Copyright 2015-2016, Google Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -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; } |