[devhelp/webkit2] Use strcmp instead of g_str_equal()
- From: Carlos Garcia Campos <carlosgc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [devhelp/webkit2] Use strcmp instead of g_str_equal()
- Date: Mon, 30 Jan 2012 08:07:29 +0000 (UTC)
commit 204febceb40909de541b7cb780bdd812ccef69cf
Author: Carlos Garcia Campos <cgarcia igalia com>
Date: Mon Jan 30 09:02:50 2012 +0100
Use strcmp instead of g_str_equal()
g_str_equal for byte by byte comparisons used by hash tables. strcmp is
what previous code had.
src/dh-window.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/dh-window.c b/src/dh-window.c
index 138bf30..231a19f 100644
--- a/src/dh-window.c
+++ b/src/dh-window.c
@@ -1304,7 +1304,7 @@ window_web_view_decide_policy_cb (WebKitWebView *web_view,
return TRUE;
}
- if (g_str_equal (uri, "about:blank")) {
+ if (strcmp (uri, "about:blank") == 0) {
return FALSE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]