Accept str instead of char* in read_autoconf_file

This commit is contained in:
Alexander Krotov
2019-09-07 19:52:12 +03:00
parent 0a6e540394
commit 81cabd08a9
3 changed files with 5 additions and 7 deletions

View File

@@ -39,9 +39,7 @@ pub unsafe fn moz_autoconfigure(
tag_config: 0,
};
let url_c = url.strdup();
let xml_raw = read_autoconf_file(context, url_c);
free(url_c as *mut libc::c_void);
let xml_raw = read_autoconf_file(context, url);
if xml_raw.is_null() {
return None;
}