summaryrefslogtreecommitdiff
path: root/cocoa
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2012-10-11 12:52:47 +0100
committerMichael Drake <tlsa@netsurf-browser.org>2012-10-11 12:52:47 +0100
commit8c8e9cc7e66bb3b708b3634ffd1abf63b6c01e53 (patch)
tree54e8bc3c14d9af71d1b06b0c705ad0cd78c6c938 /cocoa
parente2a714acb09db7f61505c7b22858cc58154ed0e3 (diff)
downloadnetsurf-8c8e9cc7e66bb3b708b3634ffd1abf63b6c01e53.tar.gz
netsurf-8c8e9cc7e66bb3b708b3634ffd1abf63b6c01e53.tar.bz2
lwc_string_isequal takes a bool for result.
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);