From: Alexander Barton Date: Sun, 25 Dec 2011 19:11:43 +0000 (+0100) Subject: IRC_xLINE(): output an error message for unexpected "lines" X-Git-Tag: rel-19-rc1~91 X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=ngircd-alex.git;a=commitdiff_plain;h=8a8e8a3a23576ccdf06aec7d0a2e6a0d8584a9d8 IRC_xLINE(): output an error message for unexpected "lines" This fixes: irc-oper.c: In function ‘IRC_xLINE’: irc-oper.c:429: warning: ‘class’ may be used uninitialized in this function irc-oper.c:430: warning: ‘class_c’ may be used uninitialized in this function --- diff --git a/src/ngircd/irc-oper.c b/src/ngircd/irc-oper.c index 1b269e3b..21577f00 100644 --- a/src/ngircd/irc-oper.c +++ b/src/ngircd/irc-oper.c @@ -450,6 +450,11 @@ IRC_xLINE(CLIENT *Client, REQUEST *Req) case 'K': class = CLASS_KLINE; class_c = 'K'; break; + default: + Log(LOG_CRIT, + "IRC_xLINE() called for unknown line: %c!? Ignored.", + Req->command[0]); + return CONNECTED; } if (Req->argc == 1) {