Merge pull request #4389 from fufesou/refact/remove_all_assert

remove all assert in non-test code
This commit is contained in:
RustDesk
2023-05-16 15:26:22 +08:00
committed by GitHub
5 changed files with 9 additions and 7 deletions

View File

@@ -80,7 +80,7 @@ impl PluginReturn {
if self.is_success() {
(self.code, "".to_owned())
} else {
assert!(!self.msg.is_null());
debug_assert!(!self.msg.is_null(), "msg is null");
let msg = cstr_to_string(self.msg).unwrap_or_default();
free_c_ptr(self.msg as _);
self.msg = null();