Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
pico-sdk
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Microcontroller
pico-sdk
Commits
543431e2
Commit
543431e2
authored
2 years ago
by
graham sanderson
Browse files
Options
Downloads
Patches
Plain Diff
initialization of single field in struct was causing memset of whole struct
parent
d1e7294d
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/rp2_common/pico_stdio/stdio.c
+2
-1
2 additions, 1 deletion
src/rp2_common/pico_stdio/stdio.c
with
2 additions
and
1 deletion
src/rp2_common/pico_stdio/stdio.c
+
2
−
1
View file @
543431e2
...
...
@@ -241,7 +241,8 @@ int WRAPPER_FUNC(vprintf)(const char *format, va_list va) {
}
int
ret
;
#if LIB_PICO_PRINTF_PICO
struct
stdio_stack_buffer
buffer
=
{.
used
=
0
};
struct
stdio_stack_buffer
buffer
;
buffer
.
used
=
0
;
ret
=
vfctprintf
(
stdio_buffered_printer
,
&
buffer
,
format
,
va
);
stdio_stack_buffer_flush
(
&
buffer
);
stdio_flush
();
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment