diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2019-10-09 07:17:32 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2019-10-09 07:17:32 +0200 |
commit | 5398f5d566191ef87287cd4159d37b0ecea28685 (patch) | |
tree | 85959e18e2afdaf22528cbb2b326ca393b7c5782 /src/plugins/irc | |
parent | 02c63beef97ca02f4246ad37ed262f056a1b88ec (diff) | |
download | weechat-5398f5d566191ef87287cd4159d37b0ecea28685.zip |
irc: fix compiler warning on uninitialized variable
Diffstat (limited to 'src/plugins/irc')
-rw-r--r-- | src/plugins/irc/irc-server.c | 6 |
1 files changed, 6 insertions, 0 deletions
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) { |