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 /firmware/common/vuprintf.c | |
parent | e54dedd8df7de98ccbc082afadf977f56ce8259f (diff) | |
download | rockbox-d68c314cea350df06cd6c664d21628fa4d17d28e.tar.gz rockbox-d68c314cea350df06cd6c664d21628fa4d17d28e.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
Diffstat (limited to 'firmware/common/vuprintf.c')
-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, | |||
730 | vuprintf_push_cb push, | 730 | vuprintf_push_cb push, |
731 | void *userp) | 731 | void *userp) |
732 | { | 732 | { |
733 | struct ap_int ia, fa; | 733 | struct ap_int ia ={0}; |
734 | struct ap_int fa ={0}; | ||
734 | long rc = parse_double(f, &ia, &fa, fmt_buf); | 735 | long rc = parse_double(f, &ia, &fa, fmt_buf); |
735 | 736 | ||
736 | if (UNLIKELY(rc < 0)) { | 737 | if (UNLIKELY(rc < 0)) { |