diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2018-10-21 08:53:22 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2018-10-21 08:53:22 +0200 |
commit | eb77c78dad5d036ba436134a7f5744255cf23f2a (patch) | |
tree | f86efa69acd077ee81285307a86e12070426208f /src | |
parent | 1a3bd49a469d6daf8ad56e4dbd8a8174d632e918 (diff) | |
download | weechat-eb77c78dad5d036ba436134a7f5744255cf23f2a.zip |
irc: fix uninitialized variables in function irc_protocol_cap_sync
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/irc/irc-protocol.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/plugins/irc/irc-protocol.c b/src/plugins/irc/irc-protocol.c index 5eb9fd605..fb7ba870a 100644 --- a/src/plugins/irc/irc-protocol.c +++ b/src/plugins/irc/irc-protocol.c @@ -373,11 +373,9 @@ irc_protocol_cap_sync (struct t_irc_server *server, int sasl) int sasl_requested, sasl_to_do, sasl_fail; int i, length, num_caps_requested; - if (sasl) - { - sasl_requested = irc_server_sasl_enabled (server); - sasl_to_do = 0; - } + sasl_requested = (sasl) ? irc_server_sasl_enabled (server) : 0; + sasl_to_do = 0; + ptr_cap_option = IRC_SERVER_OPTION_STRING( server, IRC_SERVER_OPTION_CAPABILITIES); |