Re: [perl #32687] Encode::is_utf8 on tainted UTF8 string
[p5sagit/p5-mst-13.2.git] / util.c
diff --git a/util.c b/util.c
index b6acab4..80e283b 100644 (file)
--- a/util.c
+++ b/util.c
@@ -258,11 +258,13 @@ Perl_safesyscalloc(MEM_SIZE count, MEM_SIZE size)
 {
     dTHX;
     Malloc_t ptr;
+#if defined(DEBUGGING) || defined(HAS_64K_LIMIT) || defined(PERL_TRACK_MEMPOOL)
     const MEM_SIZE total_size = size * count
-#ifdef PERL_TRACK_MEMPOOL
+#ifdef   PERL_TRACK_MEMPOOL
        + sTHX
 #endif
        ;
+#endif
 
 #ifdef HAS_64K_LIMIT
     if (total_size > 0xffff) {