Module: kamailio
Branch: master
Commit: 061d08c29eae94741a31d002d1e99a23908a0d0f
URL:
https://github.com/kamailio/kamailio/commit/061d08c29eae94741a31d002d1e99a2…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2017-06-07T11:19:27+02:00
app_sqlang: proper jump in the exports array
---
Modified: src/modules/app_sqlang/app_sqlang_api.c
---
Diff:
https://github.com/kamailio/kamailio/commit/061d08c29eae94741a31d002d1e99a2…
Patch:
https://github.com/kamailio/kamailio/commit/061d08c29eae94741a31d002d1e99a2…
---
diff --git a/src/modules/app_sqlang/app_sqlang_api.c
b/src/modules/app_sqlang/app_sqlang_api.c
index 648e8023a0..eea36f6ab0 100644
--- a/src/modules/app_sqlang/app_sqlang_api.c
+++ b/src/modules/app_sqlang/app_sqlang_api.c
@@ -1466,7 +1466,7 @@ SQInteger sqlang_open_KSR(HSQUIRRELVM 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, "%s", emods[k].kexp[0].mname.s);
sq_pushstring(J, mname, -1); /* stack[4] */
sq_newtable(J); /* stack[5] */