mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-03-16 01:31:01 +03:00
better handle of null pointer
Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
@@ -81,7 +81,7 @@ impl PluginReturn {
|
||||
(self.code, "".to_owned())
|
||||
} else {
|
||||
if self.msg.is_null() {
|
||||
log::warn!("The message pointer is null");
|
||||
log::warn!("The message pointer from the plugin is null, but the error code is {}", self.code);
|
||||
return (self.code, "".to_owned())
|
||||
}
|
||||
let msg = cstr_to_string(self.msg).unwrap_or_default();
|
||||
|
||||
Reference in New Issue
Block a user