libjabber: `open' could be used uninitialized in xmltok_impl_c.h
authorMikael Berthe <mikael@lilotux.net>
Thu, 21 Jul 2005 21:16:26 +0100
changeset 348 f50d8b8c512b
parent 347 08ac3b696fad
child 349 3f5e7962bb47
libjabber: `open' could be used uninitialized in xmltok_impl_c.h
mcabber/libjabber/xmltok_impl_c.h
--- a/mcabber/libjabber/xmltok_impl_c.h	Wed Jul 20 22:39:21 2005 +0100
+++ b/mcabber/libjabber/xmltok_impl_c.h	Thu Jul 21 21:16:26 2005 +0100
@@ -1391,7 +1391,7 @@
 {
     enum { other, inName, inValue } state = inName;
     int nAtts = 0;
-    int open;
+    int open = 0;
 
     for (ptr += MINBPC(enc);; ptr += MINBPC(enc)) {
         switch (BYTE_TYPE(enc, ptr)) {