mirror of
https://github.com/apache/nuttx.git
synced 2026-06-02 09:38:37 +08:00
syslogstream : init value for lib_syslograwstream_s.last_ch
Signed-off-by: xucheng5 <xucheng5@xiaomi.com>
This commit is contained in:
@@ -260,6 +260,7 @@ void lib_syslograwstream_open(FAR struct lib_syslograwstream_s *stream)
|
|||||||
stream->common.putc = syslograwstream_putc;
|
stream->common.putc = syslograwstream_putc;
|
||||||
stream->common.puts = syslograwstream_puts;
|
stream->common.puts = syslograwstream_puts;
|
||||||
stream->common.nput = 0;
|
stream->common.nput = 0;
|
||||||
|
stream->last_ch = '\0';
|
||||||
|
|
||||||
#ifdef CONFIG_SYSLOG_BUFFER
|
#ifdef CONFIG_SYSLOG_BUFFER
|
||||||
stream->common.flush = syslograwstream_flush;
|
stream->common.flush = syslograwstream_flush;
|
||||||
|
|||||||
Reference in New Issue
Block a user