trying to fix at least the message from bug #158628 added first xmlsave
* xmlschemastypes.c: trying to fix at least the message from
bug #158628
* include/libxml/xmlsave.h xmlsave.c: added first xmlsave option
for format, c.f. bug #159997
Daniel
diff --git a/xmlschemastypes.c b/xmlschemastypes.c
index 4d9be10..622f683 100644
--- a/xmlschemastypes.c
+++ b/xmlschemastypes.c
@@ -1656,6 +1656,9 @@
if (val == NULL) {
return(-1);
}
+ if (ret != NULL) {
+ *ret = NULL;
+ }
cur = val;
/*
* Split the list
@@ -1673,9 +1676,6 @@
}
}
if (nb_values == 0) {
- if (ret != NULL) {
- TODO
- }
xmlFree(val);
return(nb_values);
}
@@ -1689,10 +1689,11 @@
while (*cur != 0) cur++;
while ((*cur == 0) && (cur != endval)) cur++;
}
- xmlFree(val);
+ /* TODO what return value ? c.f. bug #158628
if (ret != NULL) {
TODO
- }
+ } */
+ xmlFree(val);
if (tmp == 0)
return(nb_values);
return(-1);