projects
/
vimb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8f3379a
)
avoid calling function for check empty string
author
Sébastien Marie
<semarie@users.noreply.github.com>
Sat, 25 Oct 2014 07:13:10 +0000
(09:13 +0200)
committer
Sébastien Marie
<semarie@users.noreply.github.com>
Sat, 25 Oct 2014 04:11:49 +0000
(06:11 +0200)
src/main.c
patch
|
blob
|
history
diff --git
a/src/main.c
b/src/main.c
index
765b32b
..
21501d7
100644
(file)
--- a/
src/main.c
+++ b/
src/main.c
@@
-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 {