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.

Backports commit a5a5f5e2e437db6c19164b734f838a7bf9e0c5ec from qemu
This commit is contained in:
Alex Bennée 2018-05-15 21:49:19 -04:00 committed by Lioncash
parent 664396a635
commit 99de568b7d
No known key found for this signature in database
GPG Key ID: 4E3C3CC1031BA9C7

View File

@ -1525,7 +1525,7 @@ FLOAT_TO_UINT(64, 64)
static FloatParts int_to_float(int64_t a, float_status *status)
{
FloatParts r;
FloatParts r = {0};
if (a == 0) {
r.cls = float_class_zero;
r.sign = false;