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
This commit is contained in:
Alexander Barton 2008-07-27 17:11:40 +02:00
parent 3358ad07d7
commit e5174c629c
1 changed files with 1 additions and 1 deletions

View File

@ -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);