diff options
author | Alex Bennée <alex.bennee@linaro.org> | 2018-05-15 14:58:42 +0100 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2018-05-15 14:58:42 +0100 |
commit | a5a5f5e2e437db6c19164b734f838a7bf9e0c5ec (patch) | |
tree | 91b766c906f4b22f666368284346d1faed4cbde2 /fpu | |
parent | ad1b4ec39caa5b3f17cbd8160283a03a3dcfe2ae (diff) | |
download | qemu-a5a5f5e2e437db6c19164b734f838a7bf9e0c5ec.zip qemu-a5a5f5e2e437db6c19164b734f838a7bf9e0c5ec.tar.gz qemu-a5a5f5e2e437db6c19164b734f838a7bf9e0c5ec.tar.bz2 |
fpu/softfloat: int_to_float ensure r fully initialised
Reported by Coverity (CID1390635). We ensure this for uint_to_float
later on so we might as well mirror that.
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'fpu')
-rw-r--r-- | fpu/softfloat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fpu/softfloat.c b/fpu/softfloat.c index 8401b37..b39c0c6 100644 --- a/fpu/softfloat.c +++ b/fpu/softfloat.c @@ -1525,7 +1525,7 @@ FLOAT_TO_UINT(64, 64) static FloatParts int_to_float(int64_t a, float_status *status) { - FloatParts r; + FloatParts r = {}; if (a == 0) { r.cls = float_class_zero; r.sign = false; |