diff options
author | Daniel Veillard <veillard@src.gnome.org> | 1998-11-13 18:04:35 +0000 |
---|---|---|
committer | Daniel Veillard <veillard@src.gnome.org> | 1998-11-13 18:04:35 +0000 |
commit | 242590ee5d7558dbc937c8abbd471425f1059f43 (patch) | |
tree | aaf6df0f844688603bef4731837c1686568c5444 /entities.c | |
parent | 42dc9b30b95d601ece30b4c9267e157ca694a5ab (diff) | |
download | libxml2-242590ee5d7558dbc937c8abbd471425f1059f43.tar.gz |
simple bug hunting done during rpm2html and rpmfind integration.
Diffstat (limited to 'entities.c')
-rw-r--r-- | entities.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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)); |