Skip to content

Commit

Permalink
ctl: skip condition on already set name variable
Browse files Browse the repository at this point in the history
(cherry picked from commit fda8de9)
  • Loading branch information
miconda committed Aug 30, 2017
1 parent e7676ca commit 91c5ad4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/ctl/ctrl_socks.c
Expand Up @@ -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:
Expand Down

0 comments on commit 91c5ad4

Please sign in to comment.