mirror of
https://github.com/weyne85/rustdesk.git
synced 2025-10-29 17:00:05 +00:00
remove all assert in non-test code
Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
@@ -79,7 +79,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