Allow non_snake_case in dc_replace_bad_utf8_chars function

This commit is contained in:
jikstra
2019-07-29 16:23:43 +02:00
committed by Floris Bruynooghe
parent 566d255b33
commit 8274c6bf17

View File

@@ -263,6 +263,7 @@ pub unsafe fn dc_unify_lineends(buf: *mut libc::c_char) {
}
/* replace bad UTF-8 characters by sequences of `_` (to avoid problems in filenames, we do not use eg. `?`) the function is useful if strings are unexpectingly encoded eg. as ISO-8859-1 */
#[allow(non_snake_case)]
pub unsafe fn dc_replace_bad_utf8_chars(buf: *mut libc::c_char) {
let mut OK_TO_CONTINUE = true;
if buf.is_null() {