]> source.dussan.org Git - rspamd.git/commitdiff
Fix order
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 15 Jan 2016 16:15:55 +0000 (16:15 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 15 Jan 2016 16:15:55 +0000 (16:15 +0000)
contrib/libottery/ottery_global.c

index 6bd205b4f4defbcffbb3daf7c6d31e1579710f21..788b5076cb455912e66c392e9111e745a6fe7291 100644 (file)
@@ -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;
 }