mirror of
https://github.com/libexpat/libexpat.git
synced 2025-04-06 05:34:59 +00:00
Add initialization to avoid warning
This commit is contained in:
parent
d311382e80
commit
56d5132566
1 changed files with 2 additions and 1 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Add table
Reference in a new issue