[sr-dev] git:master:fda8de91: ctl: skip condition on already set name variable
Daniel-Constantin Mierla
miconda at gmail.com
Mon Jul 31 15:54:50 CEST 2017
Module: kamailio
Branch: master
Commit: fda8de91d80a2aee7a3ec5e44e6fc1d918541254
URL: https://github.com/kamailio/kamailio/commit/fda8de91d80a2aee7a3ec5e44e6fc1d918541254
Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2017-07-31T15:54:27+02:00
ctl: skip condition on already set name variable
---
Modified: src/modules/ctl/ctrl_socks.c
---
Diff: https://github.com/kamailio/kamailio/commit/fda8de91d80a2aee7a3ec5e44e6fc1d918541254.diff
Patch: https://github.com/kamailio/kamailio/commit/fda8de91d80a2aee7a3ec5e44e6fc1d918541254.patch
---
diff --git a/src/modules/ctl/ctrl_socks.c b/src/modules/ctl/ctrl_socks.c
index 9e800a907b..f9d559564b 100644
--- a/src/modules/ctl/ctrl_socks.c
+++ b/src/modules/ctl/ctrl_socks.c
@@ -145,7 +145,7 @@ struct id_list* parse_listen_id(char* l, int len, enum socket_protos def)
proto=UDP_SOCK;
DBG("guess:%s is a tcp socket\n", name);
}
- }else if (name && strchr(name, '/')){
+ }else if (strchr(name, '/')){
switch(def){
case TCP_SOCK:
case UDP_SOCK:
More information about the sr-dev
mailing list