ctl: skip condition on already set name variable
authorDaniel-Constantin Mierla <miconda@gmail.com>
Mon, 31 Jul 2017 13:32:57 +0000 (15:32 +0200)
committerDaniel-Constantin Mierla <miconda@gmail.com>
Mon, 31 Jul 2017 13:54:27 +0000 (15:54 +0200)
src/modules/ctl/ctrl_socks.c

index 9e800a9..f9d5595 100644 (file)
@@ -145,7 +145,7 @@ end:
                                        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: