From affe7a183d52208ffba24f2bc303ba8ccb2394a8 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Sun, 9 Feb 2020 17:55:25 +0000 Subject: [PATCH] value: Avoid compiler warning for uninitialized data. --- src/data/value.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/data/value.h b/src/data/value.h index 8e624a8464..4c4349de8a 100644 --- a/src/data/value.h +++ b/src/data/value.h @@ -80,6 +80,8 @@ value_init (union value *v, int width) { if (width > 0) v->s = xmalloc (width); + else + v->f = 0.0; } /* Initializes V as a value of the given WIDTH, as with value_init(), and -- 2.30.2