From: david Date: Fri, 28 Jun 2002 15:55:11 +0000 (+0000) Subject: Patch from Julian Foad: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=b201383a80b796635e865eea1a3dfa89a678e209;p=simgear.git Patch from Julian Foad: Initialise a "possibly uninitialised" variable (which was already functionally correct). [Note from DPM: this patch will be blown away if we ever update to a newer version of Expat.] --- diff --git a/simgear/xml/xmltok_impl.c b/simgear/xml/xmltok_impl.c index f343b3fa..c52539be 100644 --- a/simgear/xml/xmltok_impl.c +++ b/simgear/xml/xmltok_impl.c @@ -1391,7 +1391,7 @@ int PREFIX(getAtts)(const ENCODING *enc, const char *ptr, { 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)) {