fix a bug introduced when fixing #438208 and reported by Ashwin fix an

* tree.c: fix a bug introduced when fixing #438208 and reported by
  Ashwin
* python/generator.py: fix an infinite loop bug
Daniel

svn path=/trunk/; revision=3733
diff --git a/tree.c b/tree.c
index 3b7d25d..763381b 100644
--- a/tree.c
+++ b/tree.c
@@ -1785,7 +1785,7 @@
     if ((node != NULL) && (node->type != XML_ELEMENT_NODE)) {
         if ((eatname == 1) &&
 	    ((node->doc == NULL) ||
-	     (!(xmlDictOwns(node->doc->dict, name) == 0))))
+	     (!(xmlDictOwns(node->doc->dict, name)))))
             xmlFree((xmlChar *) name);
         return (NULL);
     }
@@ -1797,7 +1797,7 @@
     if (cur == NULL) {
         if ((eatname == 1) &&
 	    ((node->doc == NULL) ||
-	     (!(xmlDictOwns(node->doc->dict, name) == 0))))
+	     (!(xmlDictOwns(node->doc->dict, name)))))
             xmlFree((xmlChar *) name);
         xmlTreeErrMemory("building attribute");
         return (NULL);