diff options
author | portix <none@none> | 2013-02-18 22:23:56 +0100 |
---|---|---|
committer | portix <none@none> | 2013-02-18 22:23:56 +0100 |
commit | f5d7bcfdada973cc6875ff3cfd52147aba4f5b48 (patch) | |
tree | 5af9f14414e595464c585d4331044bd8f6fca159 /src/scripts.c | |
parent | efbfa138fded83487e15ce596693a20d3c2c7608 (diff) | |
download | dwb-f5d7bcfdada973cc6875ff3cfd52147aba4f5b48.zip |
Fixing some of the clang warnings
Diffstat (limited to 'src/scripts.c')
-rw-r--r-- | src/scripts.c | 2 |
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); |