PATCH: Fix possibly uninitialised variable

Marco Wegner <mail-/[email protected]>
Newsgroups gmane.comp.kde.devel.kbabel
Message-ID <[email protected]>
Hi,

and once again a patch. It fixes another compiler warning for kbabelview.cpp 
due to a possible uninitialised variable.

Marco

_______________________________________________
kbabel mailing list
[email protected]
http://mail.kde.org/mailman/listinfo/kbabel
kbabelview_fix-uninitial.diff (text/x-diff, 512 B)
Index: kbabelview.cpp
===================================================================
RCS file: /home/kde/kdesdk/kbabel/kbabel/kbabelview.cpp,v
retrieving revision 1.226
diff -u -3 -p -b -r1.226 kbabelview.cpp
--- kbabelview.cpp	18 May 2003 19:59:08 -0000	1.226
+++ kbabelview.cpp	12 Jun 2003 10:50:26 -0000
@@ -1558,7 +1558,7 @@ bool KBabelView::saveFile(bool syntaxChe
    {
       ConversionStatus stat=_catalog->saveFile();
 
-      int whatToDo;
+      int whatToDo = -1;
 
       switch(stat)
       {
signature.asc (application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)

iD8DBQA+6FtsX3rotM03gSgRAg93AKDxdFsfEbRDvsfU5/TCqz6hG1wgoACglQgT
TX1eDa/kA7QMmhtVwVKLwvk=
=vZDz
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.