commit e5174c629c67ba84eedc6e057c66833632293e3f from: Alexander Barton date: Sun Jul 27 15:16:41 2008 UTC 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 commit - 3358ad07d78f82f6aad973f56667be9f24e00563 commit + e5174c629c67ba84eedc6e057c66833632293e3f blob - 92f29ac8ae3387119ab589266bd82be03305a9b5 blob + c49a77a4fcf13444afeaf8b79119eec7709416e6 --- src/ngircd/irc.c +++ src/ngircd/irc.c @@ -312,7 +312,7 @@ Send_Message(CLIENT * Client, REQUEST * Req, int Force CLIENT *cl, *from; CHANNEL *chan; char *currentTarget = Req->argv[0]; - char *lastCurrentTarget; + char *lastCurrentTarget = NULL; assert(Client != NULL); assert(Req != NULL);