From: Vsevolod Stakhov Date: Fri, 15 Jan 2016 16:15:55 +0000 (+0000) Subject: Fix order X-Git-Tag: 1.1.0~27 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=bc97fb8dd4594547f421057f6f9a0527a2bd9a08;p=rspamd.git Fix order --- 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; }