changeset 348:f50d8b8c512b

libjabber: `open' could be used uninitialized in xmltok_impl_c.h
author Mikael Berthe <mikael@lilotux.net>
date Thu, 21 Jul 2005 21:16:26 +0100
parents 08ac3b696fad
children 3f5e7962bb47
files mcabber/libjabber/xmltok_impl_c.h
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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)) {