diff options
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/libottery/ottery_global.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/libottery/ottery_global.c b/contrib/libottery/ottery_global.c index 6bd205b4f..788b5076c 100644 --- a/contrib/libottery/ottery_global.c +++ b/contrib/libottery/ottery_global.c @@ -39,12 +39,12 @@ static struct ottery_state ottery_global_state_; int ottery_init(const struct ottery_config *cfg) { + if (getenv("VALGRIND")) { + ottery_valgrind_ = 1; + } int n = ottery_st_init(&ottery_global_state_, cfg); if (n == 0) ottery_global_state_initialized_ = 1; - if (getenv("VALGRIND")) { - ottery_valgrind_ = 1; - } return n; } |