diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-01-15 16:15:55 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-01-15 16:15:55 +0000 |
commit | bc97fb8dd4594547f421057f6f9a0527a2bd9a08 (patch) | |
tree | 5ab236a1dc756ec75a2b035f2d44d056d2c657e5 /contrib | |
parent | 248d1ceb588fd27efe424dbd40fa1a779d6529c2 (diff) | |
download | rspamd-bc97fb8dd4594547f421057f6f9a0527a2bd9a08.tar.gz rspamd-bc97fb8dd4594547f421057f6f9a0527a2bd9a08.zip |
Fix order
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; } |