From 114dda829487de764d67f5932b0f47a404a025da Mon Sep 17 00:00:00 2001 From: Calvin Rose Date: Wed, 29 Nov 2017 15:33:27 -0500 Subject: [PATCH] Catch unitialized value valgrind error. Probably has no effect, but fixed to shut up valgrind. --- core/wrap.c | 1 + 1 file changed, 1 insertion(+) diff --git a/core/wrap.c b/core/wrap.c index 62c4f27d..cb22e1e2 100644 --- a/core/wrap.c +++ b/core/wrap.c @@ -121,6 +121,7 @@ DstValue dst_wrap_boolean(int x) { DstValue dst_wrap_##NAME(TYPE x) {\ DstValue y;\ y.type = DTYPE;\ + y.as.u64 = 0; /* zero other bits in case of 32 bit integer */ \ y.as.UM = x;\ return y;\ }