Skip to content

An open-source remote desktop application designed for self-hosting, as an alternative to TeamViewer.

fix a potential crash

rustdesk28ddf6cf079a
diff --git a/src/common.rs b/src/common.rs
index 4172344d0..e5599389c 100644
--- a/src/common.rs
+++ b/src/common.rs
@@ -844,7 +844,7 @@ async fn check_software_update_() -> hbb_common::ResultType<()> {
.path()
.rsplit('/')
.next()
- .unwrap();
+ .unwrap_or_default();
let response_url = latest_release_response.url().to_string();