summaryrefslogtreecommitdiff
path: root/entities.c
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>1998-11-13 18:04:35 +0000
committerDaniel Veillard <veillard@src.gnome.org>1998-11-13 18:04:35 +0000
commit242590ee5d7558dbc937c8abbd471425f1059f43 (patch)
treeaaf6df0f844688603bef4731837c1686568c5444 /entities.c
parent42dc9b30b95d601ece30b4c9267e157ca694a5ab (diff)
downloadlibxml2-242590ee5d7558dbc937c8abbd471425f1059f43.tar.gz
simple bug hunting done during rpm2html and rpmfind integration.
Diffstat (limited to 'entities.c')
-rw-r--r--entities.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/entities.c b/entities.c
index 07761171..0b418001 100644
--- a/entities.c
+++ b/entities.c
@@ -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));