[Shadowirc-commits] CVS: shadowirc/src IRCSFeatures.c,1.2,1.3
Status: Alpha
Brought to you by:
dshadow
|
From: Sean M. <smc...@us...> - 2005-03-18 07:45:34
|
Update of /cvsroot/shadowirc/shadowirc/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4471 Modified Files: IRCSFeatures.c Log Message: Avoid 'might be used uninitialized' warning. Pointer variables should always be initialized to NULL if they have no immediate value. Index: IRCSFeatures.c =================================================================== RCS file: /cvsroot/shadowirc/shadowirc/src/IRCSFeatures.c,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- IRCSFeatures.c 30 Jan 2005 04:18:24 -0000 1.2 +++ IRCSFeatures.c 18 Mar 2005 07:45:12 -0000 1.3 @@ -169,7 +169,7 @@ if(kf) { - void* data; + void* data = NULL; void* srcLoc = kf->def; if(kf->type == featureBool) |