commit | 2342cf66e1a9721f7bee67c386f1cc7a4d1355a4 | [log] [tgz] |
---|---|---|
author | Radek Krejci <rkrejci@cesnet.cz> | Fri Jan 29 16:48:23 2016 +0100 |
committer | Radek Krejci <rkrejci@cesnet.cz> | Fri Jan 29 16:48:23 2016 +0100 |
tree | bcd55fa711322bf397e68e3f69cc90c400d6db4a | |
parent | 7d9f46af1fd5b852821a15739a4bbc3ee5816654 [diff] [blame] |
data parser CHANGE make data parser accept empty data In case a schema doesn't require some mandatory element, having an empty data tree (represented as NULL) can be completely correct.
diff --git a/src/xml.c b/src/xml.c index 6f0c222..f466fca 100644 --- a/src/xml.c +++ b/src/xml.c
@@ -1128,6 +1128,8 @@ unsigned int len; struct lyxml_elem *root, *first = NULL, *next; + ly_errno = LY_SUCCESS; + #ifndef NDEBUG /* TODO: threads support */ lineno = 1;