From b201383a80b796635e865eea1a3dfa89a678e209 Mon Sep 17 00:00:00 2001 From: david Date: Fri, 28 Jun 2002 15:55:11 +0000 Subject: [PATCH] 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.] --- simgear/xml/xmltok_impl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) {