s3/mdssvc: missing assignment in sl_pack_float
authorRalph Boehme <slow@samba.org>
Sun, 27 Aug 2017 17:22:38 +0000 (19:22 +0200)
committerJeremy Allison <jra@samba.org>
Mon, 28 Aug 2017 23:00:34 +0000 (01:00 +0200)
commit7b58c8f54499f01778bcbfc2ad21521ceed2dd57
tree80c6956dfa7a5a13e56b6d6c0abc7423736ac67e
parentdd3e06f14ec1788a59e4c6ba4ea165fd77b9135e
s3/mdssvc: missing assignment in sl_pack_float

Spotted by -Werror=maybe-uninitialized:

../source3/rpc_server/mdssvc/marshalling.c: In function ‘sl_pack_float’:
../source3/rpc_server/mdssvc/marshalling.c:171:11: error:
‘ieee_fp_union.w’ may be used uninitialized in this function
[-Werror=maybe-uninitialized]
  offset = sl_push_uint64_val(buf, offset, bufsize, ieee_fp_union.w);

Bug: https://bugzilla.samba.org/show_bug.cgi?id=12991

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/rpc_server/mdssvc/marshalling.c