Module: kamailio
Branch: master
Commit: da81321d73666d9df1f80c92031726af0c16e2a4
URL:
https://github.com/kamailio/kamailio/commit/da81321d73666d9df1f80c92031726a…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2017-06-07T11:04:56+02:00
app_jsdt: proper jump in the js exports array
---
Modified: src/modules/app_jsdt/app_jsdt_api.c
---
Diff:
https://github.com/kamailio/kamailio/commit/da81321d73666d9df1f80c92031726a…
Patch:
https://github.com/kamailio/kamailio/commit/da81321d73666d9df1f80c92031726a…
---
diff --git a/src/modules/app_jsdt/app_jsdt_api.c b/src/modules/app_jsdt/app_jsdt_api.c
index ad5ec342d4..0752e2ad31 100644
--- a/src/modules/app_jsdt/app_jsdt_api.c
+++ b/src/modules/app_jsdt/app_jsdt_api.c
@@ -1238,7 +1238,7 @@ duk_ret_t dukopen_KSR(duk_context *J)
if(emods_size>1) {
for(k=1; k<emods_size; k++) {
n++;
- _sr_crt_J_KSRMethods += n;
+ _sr_crt_J_KSRMethods = _sr_J_KSRMethods + n;
snprintf(mname, 128, "KSR_%s", emods[k].kexp[0].mname.s);
for(i=0; emods[k].kexp[i].func!=NULL; i++) {
LM_DBG("exporting %s.%s(...)\n", mname,