From 5398f5d566191ef87287cd4159d37b0ecea28685 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Wed, 9 Oct 2019 07:17:32 +0200 Subject: irc: fix compiler warning on uninitialized variable --- src/plugins/irc/irc-server.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/plugins/irc') diff --git a/src/plugins/irc/irc-server.c b/src/plugins/irc/irc-server.c index d4171fd39..8bb5dc90a 100644 --- a/src/plugins/irc/irc-server.c +++ b/src/plugins/irc/irc-server.c @@ -2513,6 +2513,9 @@ irc_server_send_one_msg (struct t_irc_server *server, int flags, case IRC_SERVER_CHARSET_MESSAGE_TEXT: pos_encode = pos_text; break; + default: + pos_encode = 0; + break; } if (pos_encode >= 0) { @@ -3034,6 +3037,9 @@ irc_server_msgq_flush () case IRC_SERVER_CHARSET_MESSAGE_TEXT: pos_decode = pos_text; break; + default: + pos_decode = 0; + break; } if (pos_decode >= 0) { -- cgit v1.2.3