From bc97fb8dd4594547f421057f6f9a0527a2bd9a08 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Fri, 15 Jan 2016 16:15:55 +0000 Subject: [PATCH] Fix order --- contrib/libottery/ottery_global.c | 6 +++--- 1 file 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; } -- 2.39.5