summaryrefslogtreecommitdiff
path: root/src/scripts.c
diff options
context:
space:
mode:
authorportix <none@none>2013-02-18 22:23:56 +0100
committerportix <none@none>2013-02-18 22:23:56 +0100
commitf5d7bcfdada973cc6875ff3cfd52147aba4f5b48 (patch)
tree5af9f14414e595464c585d4331044bd8f6fca159 /src/scripts.c
parentefbfa138fded83487e15ce596693a20d3c2c7608 (diff)
downloaddwb-f5d7bcfdada973cc6875ff3cfd52147aba4f5b48.zip
Fixing some of the clang warnings
Diffstat (limited to 'src/scripts.c')
-rw-r--r--src/scripts.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/scripts.c b/src/scripts.c
index abead018..251cfb86 100644
--- a/src/scripts.c
+++ b/src/scripts.c
@@ -1084,7 +1084,7 @@ global_send_request(JSContextRef ctx, JSObjectRef f, JSObjectRef thisObject, siz
msg = soup_message_new(method == NULL ? "GET" : method, uri);
if (msg == NULL)
goto error_out;
- if (argc > 3 && !strcasecmp("POST", method))
+ if (argc > 3 && method != NULL && !strcasecmp("POST", method))
set_request(ctx, msg, argv[3], exc);
JSValueProtect(ctx, function);