simple bug hunting done during rpm2html and rpmfind integration.
diff --git a/entities.c b/entities.c
index 0776117..0b41800 100644
--- a/entities.c
+++ b/entities.c
@@ -259,6 +259,7 @@
     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));