Param data can't be NULL and was already dereferenced before check. --- src/sdp-xml.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/sdp-xml.c b/src/sdp-xml.c index d7b2aef..52df285 100644 --- a/src/sdp-xml.c +++ b/src/sdp-xml.c @@ -377,10 +377,7 @@ static void convert_raw_attr_to_xml_func(void *val, void *data) value->attrId); cd->appender(cd->data, buf); - if (data) - convert_raw_data_to_xml(value, 2, cd->data, cd->appender); - else - cd->appender(cd->data, "\t\tNULL\n"); + convert_raw_data_to_xml(value, 2, cd->data, cd->appender); cd->appender(cd->data, "\t</attribute>\n"); } -- 1.7.9.5 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html