Skip to content

Commit

Permalink
app_ruby: memset rbdata to 0 in app_ruby_run_ex()
Browse files Browse the repository at this point in the history
(cherry picked from commit af18330)
  • Loading branch information
miconda committed Jan 9, 2020
1 parent 4f83d15 commit 2e8d629
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/app_ruby/app_ruby_api.c
Expand Up @@ -1130,8 +1130,8 @@ int app_ruby_run_ex(sip_msg_t *msg, char *func, char *p1, char *p2,
/* check the script version loaded */
app_ruby_kemi_reload_script();

memset(&rbdata, 0, sizeof(ksr_ruby_data_t));
rbdata.robj = rb_mKernel;
rbdata.nargs = 0;
rbdata.metid = rb_intern(func);

LM_DBG("executing ruby function: [[%s]]\n", func);
Expand Down

0 comments on commit 2e8d629

Please sign in to comment.