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
commit 5f0f4957b9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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();