about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAlexander Barton <alex@barton.de>2008-07-27 17:11:40 +0200
committerAlexander Barton <alex@barton.de>2008-07-27 17:16:41 +0200
commite5174c629c67ba84eedc6e057c66833632293e3f (patch)
tree1c63f5ae4df2ed3a6f1661f02384ae305db86b7c
parent3358ad07d78f82f6aad973f56667be9f24e00563 (diff)
downloadngircd-e5174c629c67ba84eedc6e057c66833632293e3f.tar.gz
ngircd-e5174c629c67ba84eedc6e057c66833632293e3f.zip
Fix Send_Message(): "lastCurrentTarget" may be used uninitialized
This patch fixes the following warning of GCC 4.3.1:

irc.c: In function "Send_Message":
irc.c:315: error: "lastCurrentTarget" may be used uninitialized in
this function
-rw-r--r--src/ngircd/irc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ngircd/irc.c b/src/ngircd/irc.c
index 92f29ac8..c49a77a4 100644
--- a/src/ngircd/irc.c
+++ b/src/ngircd/irc.c
@@ -312,7 +312,7 @@ Send_Message(CLIENT * Client, REQUEST * Req, int ForceType, bool SendErrors)
 	CLIENT *cl, *from;
 	CHANNEL *chan;
 	char *currentTarget = Req->argv[0];
-	char *lastCurrentTarget;
+	char *lastCurrentTarget = NULL;
 
 	assert(Client != NULL);
 	assert(Req != NULL);