remove all assert in non-test code
Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
parent
2d7bebb54b
commit
edf6b00f13
5 changed files with 9 additions and 7 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue