diff options
| author | Alexander Barton <alex@barton.de> | 2008-06-16 13:07:50 +0200 |
|---|---|---|
| committer | Alexander Barton <alex@barton.de> | 2008-06-16 13:18:03 +0200 |
| commit | 258e39e89f494600cf142ba1fd768f2faa285dbf (patch) | |
| tree | ae6b797723296f09ceb603d2195e1cf6bd611be2 /src | |
| parent | e142c50ae69182d484e55a3da1f065f3d958d93e (diff) | |
| download | ngircd-258e39e89f494600cf142ba1fd768f2faa285dbf.tar.gz ngircd-258e39e89f494600cf142ba1fd768f2faa285dbf.zip | |
Fix GCC warnings for possibly uninitialized variables in IRC_JOIN
This patch fixes the following two warnings of GCC 4.2.4: irc-channel.c: In function "IRC_JOIN": irc-channel.c:185: warning: "lastkey" may be used uninitialized in this function irc-channel.c:185: warning: "lastchan" may be used uninitialized in this function
Diffstat (limited to 'src')
| -rw-r--r-- | src/ngircd/irc-channel.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ngircd/irc-channel.c b/src/ngircd/irc-channel.c index 203e32f4..030961f0 100644 --- a/src/ngircd/irc-channel.c +++ b/src/ngircd/irc-channel.c @@ -182,7 +182,7 @@ join_send_topic(CLIENT *Client, CLIENT *target, CHANNEL *chan, GLOBAL bool IRC_JOIN( CLIENT *Client, REQUEST *Req ) { - char *channame, *key = NULL, *flags, *lastkey, *lastchan; + char *channame, *key = NULL, *flags, *lastkey = NULL, *lastchan = NULL; CLIENT *target; CHANNEL *chan; |