Browse Source

Merge pull request #7 from luksow/easy-content-fix

Fix for xml_easy_content() for nodes with no content
master
ooxi 11 years ago
parent
commit
207c7548e4
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      src/xml.c

+ 4
- 0
src/xml.c View File

@@ -143,6 +143,10 @@ static _Bool xml_string_equals(struct xml_string* a, struct xml_string* b) {
* [PRIVATE]
*/
static uint8_t* xml_string_clone(struct xml_string* s) {
if (!s) {
return 0;
}

uint8_t* clone = calloc(s->length + 1, sizeof(uint8_t));

xml_string_copy(s, clone, s->length);


Loading…
Cancel
Save