git:master:061d08c2: app_sqlang: proper jump in the exports array

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

git:master:061d08c2: app_sqlang: proper jump in the exports array

Daniel-Constantin Mierla-6
Module: kamailio
Branch: master
Commit: 061d08c29eae94741a31d002d1e99a23908a0d0f
URL: https://github.com/kamailio/kamailio/commit/061d08c29eae94741a31d002d1e99a23908a0d0f

Author: Daniel-Constantin Mierla <[hidden email]>
Committer: Daniel-Constantin Mierla <[hidden email]>
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/061d08c29eae94741a31d002d1e99a23908a0d0f.diff
Patch: https://github.com/kamailio/kamailio/commit/061d08c29eae94741a31d002d1e99a23908a0d0f.patch

---

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] */


_______________________________________________
Kamailio (SER) - Development Mailing List
[hidden email]
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev
Loading...