diff options
author | William Wilgus <wilgus.william@gmail.com> | 2024-06-04 16:18:43 -0400 |
---|---|---|
committer | William Wilgus <me.theuser@yahoo.com> | 2024-06-05 19:16:07 -0400 |
commit | d68c314cea350df06cd6c664d21628fa4d17d28e (patch) | |
tree | 1ff3d7224db1752e19b6c028207bc9526c04e6db | |
parent | e54dedd8df7de98ccbc082afadf977f56ce8259f (diff) | |
download | rockbox-d68c314cea.tar.gz rockbox-d68c314cea.zip |
[coverity] vuprintf.c format_double_radix() initialize data struct
it appears this is false positive but its compliaining
about the uninitialized pointer,
not a bad idea to initialize pointers to NULL anyway
Change-Id: I5832a19ab13971c7d55580694eef70591a3a9acb
-rw-r--r-- | firmware/common/vuprintf.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/firmware/common/vuprintf.c b/firmware/common/vuprintf.c index 0566e3e37e..a040a3f0ac 100644 --- a/firmware/common/vuprintf.c +++ b/firmware/common/vuprintf.c @@ -730,7 +730,8 @@ static int format_double_radix(double f, vuprintf_push_cb push, void *userp) { - struct ap_int ia, fa; + struct ap_int ia ={0}; + struct ap_int fa ={0}; long rc = parse_double(f, &ia, &fa, fmt_buf); if (UNLIKELY(rc < 0)) { |