summaryrefslogtreecommitdiff
path: root/cocoa
diff options
context:
space:
mode:
Diffstat (limited to 'cocoa')
-rw-r--r--cocoa/BrowserViewController.m3
1 files changed, 2 insertions, 1 deletions
diff --git a/cocoa/BrowserViewController.m b/cocoa/BrowserViewController.m
index 76518a2d4..f8b26e12f 100644
--- a/cocoa/BrowserViewController.m
+++ b/cocoa/BrowserViewController.m
@@ -149,7 +149,8 @@
if (scheme == NULL)
return;
- if (lwc_string_isequal(scheme, corestring_lwc_file) == 0)
+ bool match;
+ if (lwc_string_isequal(scheme, corestring_lwc_file, &match) == lwc_error_ok && match == true)
path = url_to_path(nsurl_access(hlcache_handle_get_url(content)));
lwc_string_unref(scheme);