From 1240387cd2770e49f3ab3bcd32a66d7638349c24 Mon Sep 17 00:00:00 2001 From: jun7 Date: Wed, 6 Jun 2018 02:58:02 +0900 Subject: [PATCH] Wrong scope --- ab.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ab.c b/ab.c index 041dea7..1b623bc 100644 --- a/ab.c +++ b/ab.c @@ -33,7 +33,6 @@ along with wyebadblock. If not, see . #define EXE "wyebab" #include -static bool first = true; static bool check(const char *requri, const char *pageuri) { char *uris = g_strconcat(requri, " ", pageuri, NULL); @@ -49,6 +48,7 @@ static gboolean reqcb(WebKitWebPage *kp, WebKitURIRequest *req, if (g_object_get_data(G_OBJECT(kp), "adblock") == (gpointer)'n') return false; + static bool first = true; if (first) { if (webkit_uri_request_get_http_headers(req))