Skip to content

Commit

Permalink
syslogstream : init value for lib_syslograwstream_s.last_ch
Browse files Browse the repository at this point in the history
Signed-off-by: xucheng5 <[email protected]>
  • Loading branch information
xucheng5 authored and anchao committed Sep 27, 2024
1 parent 45277da commit 887c6c8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libs/libc/stream/lib_syslograwstream.c
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,7 @@ void lib_syslograwstream_open(FAR struct lib_syslograwstream_s *stream)
stream->common.putc = syslograwstream_putc;
stream->common.puts = syslograwstream_puts;
stream->common.nput = 0;
stream->last_ch = '\0';

#ifdef CONFIG_SYSLOG_BUFFER
stream->common.flush = syslograwstream_flush;
Expand Down

0 comments on commit 887c6c8

Please sign in to comment.