]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-4350 --resolve
authorAnthony Minessale <anthm@freeswitch.org>
Mon, 25 Jun 2012 16:00:48 +0000 (11:00 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Mon, 25 Jun 2012 16:00:48 +0000 (11:00 -0500)
src/mod/languages/mod_spidermonkey/mod_spidermonkey.c

index e17c590a715ab1d72dedd9333b9520e1e81a77aa..83e723e06147187dd2d9cd9e2c2b8de443a874ee 100644 (file)
@@ -2383,7 +2383,7 @@ static JSBool session_hangup(JSContext * cx, JSObject * obj, uintN argc, jsval *
        if (switch_channel_up(channel)) {
                jsval ret = JS_TRUE;
 
-               if (argc > 1) {
+               if (argc > 0) {
                        if (JSVAL_IS_INT(argv[0])) {
                                int32 i = 0;
                                JS_ValueToInt32(cx, argv[0], &i);