[mod_v8] Fix scan-build warnings.

This commit is contained in:
Andrey Volk committed 2020-02-28 03:13:06 +04:00
1 parent 695ba877aa
commit 7bbec6611c
3 files changed
+2 -9

No files matched your search

+1 -2
View File
@@ -201,7 +201,6 @@ static switch_status_t v8_mod_load_file(const char *filename)
function_handle = (switch_loadable_module_function_table_t *)switch_dso_data_sym(dso, "v8_mod_init", &derr);
if (!function_handle || derr) {
status = SWITCH_STATUS_FALSE;
err = derr;
goto err;
}
@@ -1458,7 +1457,7 @@ SWITCH_STANDARD_API(process_status_function)
} else if (!strcasecmp(as, "xml")) {
switch_snprintf(tmp_str, sizeof(tmp_str), "%u", count);
switch_xml_set_attr(switch_xml_set_flag(xml, SWITCH_XML_DUP), strdup("row_count"), strdup(tmp_str));
switch_xml_set_attr_d(xml, "row_count", tmp_str);
output_text = switch_xml_toxml(xml, SWITCH_FALSE);