From: Christian Dywan Date: Sat, 26 Sep 2009 19:31:42 +0000 (+0200) Subject: Use brackets when checking bookmark address to avoid compiler warning X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=249b8e466920624afb69651298ce49332596eea0;p=midori Use brackets when checking bookmark address to avoid compiler warning --- diff --git a/midori/midori-browser.c b/midori/midori-browser.c index 568a4aa5..007e91d1 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 */