diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2012-10-11 12:52:47 +0100 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2012-10-11 12:52:47 +0100 |
commit | 8c8e9cc7e66bb3b708b3634ffd1abf63b6c01e53 (patch) | |
tree | 54e8bc3c14d9af71d1b06b0c705ad0cd78c6c938 | |
parent | e2a714acb09db7f61505c7b22858cc58154ed0e3 (diff) | |
download | netsurf-8c8e9cc7e66bb3b708b3634ffd1abf63b6c01e53.tar.gz netsurf-8c8e9cc7e66bb3b708b3634ffd1abf63b6c01e53.tar.bz2 |
lwc_string_isequal takes a bool for result.
-rw-r--r-- | cocoa/BrowserViewController.m | 3 |
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); |