logo

badwolf

minimalist and privacy-oriented web browser based on WebKitGTK git clone https://hacktivis.me/git/badwolf.git
commit: eb77866b46653b179d1025956cd83290ea8a5e60
parent f8d855e5009deac8193b2d2bb169cbb0c64c7572
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Wed, 28 Sep 2022 00:56:03 +0200

badwolf: Fix compilation issue with clang

Diffstat:

Mbadwolf.c9+++++----
1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/badwolf.c b/badwolf.c @@ -325,15 +325,16 @@ WebViewCb_decide_policy(WebKitWebView *UNUSED(web_view), WebKitPolicyDecisionType decision_type, gpointer user_data) { - WebKitResponsePolicyDecision *r; struct Client *old_browser = (struct Client *)user_data; + WebKitResponsePolicyDecision *r; + WebKitNavigationPolicyDecision *n; + WebKitNavigationAction *navigation_action; switch(decision_type) { case WEBKIT_POLICY_DECISION_TYPE_NAVIGATION_ACTION: - WebKitNavigationPolicyDecision *n = WEBKIT_NAVIGATION_POLICY_DECISION(decision); - WebKitNavigationAction *navigation_action = - webkit_navigation_policy_decision_get_navigation_action(n); + n = WEBKIT_NAVIGATION_POLICY_DECISION(decision); + navigation_action = webkit_navigation_policy_decision_get_navigation_action(n); if(GDK_CONTROL_MASK == webkit_navigation_action_get_modifiers(navigation_action) || 2 == webkit_navigation_action_get_mouse_button(navigation_action))