From: James Clark Date: Wed, 2 Jun 1999 11:12:21 +0000 (+0000) Subject: Add initialization to avoid warning X-Git-Tag: V19990626~17 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=56d5132566988a814826060b141c61c9ffcb17a9;p=libexpat Add initialization to avoid warning --- diff --git a/expat/xmltok/xmltok_impl.c b/expat/xmltok/xmltok_impl.c index 556007a1..40962654 100755 --- a/expat/xmltok/xmltok_impl.c +++ b/expat/xmltok/xmltok_impl.c @@ -1391,7 +1391,8 @@ int PREFIX(getAtts)(const ENCODING *enc, const char *ptr, { enum { other, inName, inValue } state = inName; int nAtts = 0; - int open; /* defined when state == inValue */ + int open = 0; /* defined when state == inValue; + initialization just to shut up compilers */ for (ptr += MINBPC(enc);; ptr += MINBPC(enc)) { switch (BYTE_TYPE(enc, ptr)) {