1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-03-05 16:58:17 +03:00

fixes a small bug introduced in last commit and detected by valgrind.

* tree.c: fixes a small bug introduced in last commit and detected
  by valgrind.
Daniel
This commit is contained in:
Daniel Veillard 2003-08-19 22:21:13 +00:00
parent 6155d8aafa
commit e5984080ea
2 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,8 @@
Wed Aug 20 00:20:01 CEST 2003 Daniel Veillard <daniel@veillard.com>
* tree.c: fixes a small bug introduced in last commit and detected
by valgrind.
Tue Aug 19 16:54:18 CEST 2003 Daniel Veillard <daniel@veillard.com>
* dict.c hash.c: optimization when freeing hash tables.

1
tree.c
View File

@ -6427,6 +6427,7 @@ xmlBufferResize(xmlBufferPtr buf, unsigned int size)
memcpy(rebuf, buf->content, buf->use);
xmlFree(buf->content);
}
rebuf[buf->use] = 0;
}
if (rebuf == NULL) {
xmlGenericError(xmlGenericErrorContext,