[sr-dev] git:master:da81321d: app_jsdt: proper jump in the js exports array

Daniel-Constantin Mierla miconda at gmail.com
Wed Jun 7 11:56:05 CEST 2017


Module: kamailio
Branch: master
Commit: da81321d73666d9df1f80c92031726af0c16e2a4
URL: https://github.com/kamailio/kamailio/commit/da81321d73666d9df1f80c92031726af0c16e2a4

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at 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/da81321d73666d9df1f80c92031726af0c16e2a4.diff
Patch: https://github.com/kamailio/kamailio/commit/da81321d73666d9df1f80c92031726af0c16e2a4.patch

---

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,




More information about the sr-dev mailing list