Module: kamailio Branch: master Commit: 8b4a8d6a9f06ab66e718f9b0956d17bfc374a1d5 URL: https://github.com/kamailio/kamailio/commit/8b4a8d6a9f06ab66e718f9b0956d17bf...
Author: Daniel-Constantin Mierla miconda@gmail.com Committer: Daniel-Constantin Mierla miconda@gmail.com Date: 2015-05-14T09:38:13+02:00
rtjson: removed unnecessary variable
- it was mistakenly used in some expressions
---
Modified: modules/rtjson/rtjson_routing.c
---
Diff: https://github.com/kamailio/kamailio/commit/8b4a8d6a9f06ab66e718f9b0956d17bf... Patch: https://github.com/kamailio/kamailio/commit/8b4a8d6a9f06ab66e718f9b0956d17bf...
---
diff --git a/modules/rtjson/rtjson_routing.c b/modules/rtjson/rtjson_routing.c index f8d6fdf..71ac2e6 100644 --- a/modules/rtjson/rtjson_routing.c +++ b/modules/rtjson/rtjson_routing.c @@ -494,7 +494,6 @@ int rtjson_append_branch(sip_msg_t *msg, srjson_doc_t *jdoc, srjson_t *nj) str path = {0}; struct socket_info* fsocket = NULL; unsigned int bflags = 0; - str val;
rj = srjson_GetObjectItem(jdoc, nj, "uri"); if(rj==NULL || rj->type!=srjson_String || rj->valuestring==NULL) { @@ -502,17 +501,17 @@ int rtjson_append_branch(sip_msg_t *msg, srjson_doc_t *jdoc, srjson_t *nj) }
uri.s = rj->valuestring; - uri.len = strlen(val.s); + uri.len = strlen(uri.s);
rj = srjson_GetObjectItem(jdoc, nj, "dst_uri"); if(rj!=NULL && rj->type==srjson_String && rj->valuestring!=NULL) { duri.s = rj->valuestring; - duri.len = strlen(val.s); + duri.len = strlen(duri.s); } rj = srjson_GetObjectItem(jdoc, nj, "path"); if(rj!=NULL && rj->type==srjson_String && rj->valuestring!=NULL) { path.s = rj->valuestring; - path.len = strlen(val.s); + path.len = strlen(path.s); } if (append_branch(msg, &uri, &duri, &path, 0, bflags,