mirror of
https://github.com/weyne85/rustdesk.git
synced 2025-10-29 17:00:05 +00:00
Merge pull request #4389 from fufesou/refact/remove_all_assert
remove all assert in non-test code
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user