syslog: Fix in syslog_intbuffer flushing.

This commit is contained in:
Fotis Panagiotopoulos 2021-04-06 15:46:48 +03:00 committed by Xiang Xiao
parent 0926e7c578
commit c4a9a35fb9

View File

@ -307,8 +307,8 @@ int syslog_flush_intbuffer(bool force)
/* Select which putc function to use for this flush */
putfunc = force ? g_syslog_channel[i]->sc_ops->sc_putc :
g_syslog_channel[i]->sc_ops->sc_force;
putfunc = force ? g_syslog_channel[i]->sc_ops->sc_force :
g_syslog_channel[i]->sc_ops->sc_putc;
putfunc(g_syslog_channel[i], ch);
}