[sword-cvs] sword/src/mgr filemgr.cpp,1.38,1.39

sword@www.crosswire.org sword@www.crosswire.org
Sat, 10 Apr 2004 10:04:22 -0700


Update of /cvs/core/sword/src/mgr
In directory www:/tmp/cvs-serv17839/src/mgr

Modified Files:
	filemgr.cpp 
Log Message:

dglassey:initialize ch before it is used
valgrind is handy ;)


Index: filemgr.cpp
===================================================================
RCS file: /cvs/core/sword/src/mgr/filemgr.cpp,v
retrieving revision 1.38
retrieving revision 1.39
diff -u -d -r1.38 -r1.39
--- filemgr.cpp	6 Feb 2004 21:01:01 -0000	1.38
+++ filemgr.cpp	10 Apr 2004 17:04:19 -0000	1.39
@@ -380,7 +380,7 @@
 }
 
 char FileMgr::getLine(FileDesc *fDesc, SWBuf &line) {
-	char ch;
+	char ch=0;
 	int len;
 	char *buf;
 	bool more = true;