[Xfce4-commits] <midori:master> Use brackets when checking bookmark address to avoid compiler warning

Christian Dywan noreply at xfce.org
Sat Sep 26 22:20:02 CEST 2009


Updating branch refs/heads/master
         to 249b8e466920624afb69651298ce49332596eea0 (commit)
       from 1ead8e88864567bccfdd39c34c4e1e52813db808 (commit)

commit 249b8e466920624afb69651298ce49332596eea0
Author: Christian Dywan <christian at twotoasts.de>
Date:   Sat Sep 26 21:31:42 2009 +0200

    Use brackets when checking bookmark address to avoid compiler warning

 midori/midori-browser.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/midori/midori-browser.c b/midori/midori-browser.c
index 568a4aa..007e91d 100644
--- a/midori/midori-browser.c
+++ b/midori/midori-browser.c
@@ -611,8 +611,8 @@ midori_browser_edit_bookmark_uri_changed_cb (GtkEntry*      entry,
 {
     const gchar* uri = gtk_entry_get_text (entry);
     gtk_dialog_set_response_sensitive (dialog, GTK_RESPONSE_ACCEPT,
-        uri && g_str_has_prefix (uri, "http://")
-        || g_str_has_prefix (uri, "https://"));
+        uri && (g_str_has_prefix (uri, "http://")
+        || g_str_has_prefix (uri, "https://")));
 }
 
 /* Private function, used by MidoriBookmarks and MidoriHistory */



More information about the Xfce4-commits mailing list