]> arthur.barton.de Git - ngircd-alex.git/commitdiff
Fix Send_Message(): "lastCurrentTarget" may be used uninitialized
authorAlexander Barton <alex@barton.de>
Sun, 27 Jul 2008 15:11:40 +0000 (17:11 +0200)
committerAlexander Barton <alex@barton.de>
Sun, 27 Jul 2008 15:16:41 +0000 (17:16 +0200)
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

src/ngircd/irc.c

index 92f29ac8ae3387119ab589266bd82be03305a9b5..c49a77a4fcf13444afeaf8b79119eec7709416e6 100644 (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);