From fce9ee48d2aa18dce141fd51fc5b7fa12112b787 Mon Sep 17 00:00:00 2001 From: Daniel-Constantin Mierla Date: Fri, 6 Jan 2017 11:08:36 +0100 Subject: [PATCH] app_jsdt: fixed comiple warning --- src/modules/app_jsdt/app_jsdt_api.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/modules/app_jsdt/app_jsdt_api.c b/src/modules/app_jsdt/app_jsdt_api.c index 5f0725e7693..ce4d36e62f2 100644 --- a/src/modules/app_jsdt/app_jsdt_api.c +++ b/src/modules/app_jsdt/app_jsdt_api.c @@ -385,7 +385,7 @@ static int jsdt_sr_pv_is_null (duk_context *J) const duk_function_list_entry _sr_kemi_pv_J_Map[] = { { "get", jsdt_sr_pv_get, 1 /* 1 args */ }, { "seti", jsdt_sr_pv_seti, 2 /* 2 args */ }, - { "sets", jsdt_sr_pv_seti, 2 /* 2 args */ }, + { "sets", jsdt_sr_pv_sets, 2 /* 2 args */ }, { "unset", jsdt_sr_pv_unset, 1 /* 1 args */ }, { "is_null", jsdt_sr_pv_is_null, 1 /* 1 args */ }, { NULL, NULL, 0 } @@ -432,9 +432,6 @@ int jsdt_sr_init_mod(void) */ int jsdt_sr_init_child(void) { - int ret; - char *txt; - memset(&_sr_J_env, 0, sizeof(sr_jsdt_env_t)); _sr_J_env.J = duk_create_heap_default(); if(_sr_J_env.J==NULL) { @@ -584,7 +581,6 @@ int app_jsdt_run(sip_msg_t *msg, char *func, char *p1, char *p2, int app_jsdt_runstring(sip_msg_t *msg, char *script) { int ret; - char *txt; sip_msg_t *bmsg; if(_sr_J_env.JJ==NULL) {