mirror of
https://github.com/chatmail/core.git
synced 2026-04-17 21:46:35 +03:00
refactor: reduce dependencies on libc
This commit is contained in:
committed by
Lars-Magnus Skog
parent
518935a938
commit
95d4df6027
@@ -1166,7 +1166,7 @@ pub unsafe fn dc_sqlite3_get_config_int(
|
||||
if str.is_null() {
|
||||
return def;
|
||||
}
|
||||
let ret = atoi(str) as int32_t;
|
||||
let ret = dc_atoi_null_is_0(str);
|
||||
free(str as *mut libc::c_void);
|
||||
ret
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user