1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-07-30 22:43:14 +03:00

simple bug hunting done during rpm2html and rpmfind integration.

This commit is contained in:
Daniel Veillard
1998-11-13 18:04:35 +00:00
parent 42dc9b30b9
commit 242590ee5d
4 changed files with 21 additions and 9 deletions

View File

@ -259,6 +259,7 @@ CHAR *xmlEncodeEntities(xmlDocPtr doc, const CHAR *input) {
const CHAR *cur = input;
CHAR *out = buffer;
if (input == NULL) return(NULL);
if (buffer == NULL) {
buffer_size = 1000;
buffer = (CHAR *) malloc(buffer_size * sizeof(CHAR));