avoid calling function for check empty string
authorSébastien Marie <semarie@users.noreply.github.com>
Sat, 25 Oct 2014 07:13:10 +0000 (09:13 +0200)
committerSébastien Marie <semarie@users.noreply.github.com>
Sat, 25 Oct 2014 04:11:49 +0000 (06:11 +0200)
src/main.c

index 765b32b..21501d7 100644 (file)
@@ -1497,7 +1497,7 @@ static void read_from_stdin(void)
 static void contentsecuritypolicy_request_queued_cb(SoupSession *session, SoupMessage *msg,
         gpointer data)
 {
-    if (!vb.config.contentsecuritypolicy || g_str_equal("", vb.config.contentsecuritypolicy)) {
+    if (!vb.config.contentsecuritypolicy || *vb.config.contentsecuritypolicy == '\0') {
         soup_message_headers_remove(msg->response_headers, "Content-Security-Policy");
 
     } else {