Diff of /minixml.c [75a697] .. [f557f8] Maximize Restore

  Switch to side-by-side view

--- a/minixml.c
+++ b/minixml.c
@@ -1,3 +1,4 @@
+/* $Id$ */
 /* minixml.c : the minimum size a xml parser can be ! */
 /* Project : miniupnp
  * webpage: http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/
@@ -30,7 +31,6 @@
 POSSIBILITY OF SUCH DAMAGE.
 */
 #include "minixml.h"
-#include "upnpreplyparse.h"
 
 /* parseatt : used to parse the argument list
  * return 0 (false) in case of success and -1 (true) if the end
@@ -153,11 +153,8 @@
 						if (p->xml >= p->xmlend)
 							return;
 					}
-					if (p->datafunc)
-					{
-						if (i > 0 || (p->flags & XML_STORE_EMPTY_FL))
-							p->datafunc(p->data, data, i);
-					}
+					if(i>0 && p->datafunc)
+						p->datafunc(p->data, data, i);
 				}
 			}
 			else if(*p->xml == '/')