diff options
author | Gaurav <g.gupta@samsung.com> | 2013-09-30 11:27:41 +0800 |
---|---|---|
committer | Daniel Veillard <veillard@redhat.com> | 2013-09-30 11:27:41 +0800 |
commit | 7d4e259fbfa24ef2c07a66f4b3d7ad311e68de1b (patch) | |
tree | 64c067b154f3d72a97fd65b4fd25a0e70739d373 | |
parent | b8bdc258dec460c0d07b50223792e26bc78b2f2d (diff) | |
download | android_external_libxml2-7d4e259fbfa24ef2c07a66f4b3d7ad311e68de1b.tar.gz android_external_libxml2-7d4e259fbfa24ef2c07a66f4b3d7ad311e68de1b.tar.bz2 android_external_libxml2-7d4e259fbfa24ef2c07a66f4b3d7ad311e68de1b.zip |
Avoid some dead code and cleanup in relaxng.c
https://bugzilla.gnome.org/show_bug.cgi?id=705388
Code needed a bit of cleanup
-rw-r--r-- | relaxng.c | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -2595,13 +2595,10 @@ xmlRelaxNGSchemaTypeCompare(void *data ATTRIBUTE_UNUSED, } ret = xmlSchemaValPredefTypeNode(typ, value2, &res2, ctxt2); if (ret != 0) { - if ((comp1 == NULL) && (res1 != NULL)) + if (res1 != (xmlSchemaValPtr) comp1) xmlSchemaFreeValue(res1); return (-1); } - if (res1 == NULL) { - return (-1); - } ret = xmlSchemaCompareValues(res1, res2); if (res1 != (xmlSchemaValPtr) comp1) xmlSchemaFreeValue(res1); |