diff -Naur a/xmlmodule.c b/xmlmodule.c
--- a/xmlmodule.c	2013-09-19 15:27:49.000000000 +0530
+++ b/xmlmodule.c	2013-09-19 15:28:46.000000000 +0530
@@ -115,7 +115,7 @@
 {
     int rc = -1;
 
-    if ((NULL == module) || (symbol == NULL)) {
+    if ((NULL == module) || (symbol == NULL) || (name == NULL)) {
         __xmlRaiseError(NULL, NULL, NULL, NULL, NULL, XML_FROM_MODULE,
                         XML_MODULE_OPEN, XML_ERR_FATAL, NULL, 0, 0,
                         NULL, NULL, 0, 0, "null parameter\n");
