Skip to content

Commit

Permalink
Allow to retrieve tinyows element from config file parse
Browse files Browse the repository at this point in the history
git-svn-id: file:///tmp/tinyows-svn-mirror@60 5b3c568a-86f9-4a59-a47a-7be284f604b4
  • Loading branch information
Olivier Courtin committed Feb 16, 2009
1 parent 7e90c2a commit 89b6682
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/ows/ows_config.c
Expand Up @@ -689,10 +689,8 @@ void ows_parse_config(ows * o, const char *filename)
if (o->layers == NULL)
o->layers = ows_layer_list_init();

ret = xmlTextReaderRead(r);
while (ret == 1)
while ((ret = xmlTextReaderRead(r)) == 1)
{
ret = xmlTextReaderRead(r);
if (xmlTextReaderNodeType(r) == XML_READER_TYPE_ELEMENT)
{
name = xmlTextReaderConstLocalName(r);
Expand Down

0 comments on commit 89b6682

Please sign in to comment.