fixed warning about potential null pointer dereference
@@ -8084,8 +8084,9 @@ START_TEST(test_misc_features)
/* Prevent problems with double-freeing parsers */
g_parser = NULL;
- if (features == NULL)
+ if (features == NULL) {
fail("Failed to get feature information");
+ } else {
/* Loop through the features checking what we can */
while (features->feature != XML_FEATURE_END) {
switch(features->feature) {
@@ -8103,6 +8104,7 @@ START_TEST(test_misc_features)
features++;
}
}
+}
END_TEST
/* Regression test for GitHub Issue #17: memory leak parsing attribute
