return((XMLTreeInfo *) NULL);
}
-static MagickBooleanType ValidateEntities(char *tag,char *xml,char **entities,
- const size_t depth)
+static MagickBooleanType ValidateEntities(char *tag,char *xml,
+ const size_t depthm,char **entities)
{
register ssize_t
i;
(strncmp(entities[i],xml+1,strlen(entities[i])) == 0))
i+=2;
if ((entities[i] != (char *) NULL) &&
- (ValidateEntities(tag,entities[i+1],entities,depth) == 0))
+ (ValidateEntities(tag,entities[i+1],depth+1,entities) == 0))
return(MagickFalse);
}
}
}
entities[i+1]=ParseEntities(v,predefined_entitites,'%');
entities[i+2]=(char *) NULL;
- if (ValidateEntities(n,entities[i+1],entities,0) != MagickFalse)
+ if (ValidateEntities(n,entities[i+1],0,entities) != MagickFalse)
entities[i]=n;
else
{