Sync with tizen 2.4
[platform/upstream/libxml2.git] / hash.c
diff --git a/hash.c b/hash.c
index 0145109..f9a2017 100644 (file)
--- a/hash.c
+++ b/hash.c
@@ -984,6 +984,9 @@ xmlHashCopy(xmlHashTablePtr table, xmlHashCopier f) {
        return(NULL);
 
     ret = xmlHashCreate(table->size);
+    if (ret == NULL)
+        return(NULL);
+
     if (table->table) {
        for(i = 0; i < table->size; i++) {
            if (table->table[i].valid == 0)