mirror of
https://github.com/chatmail/core.git
synced 2026-05-01 20:36:31 +03:00
Accept str instead of char* in read_autoconf_file
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user