Browse code

ctl: skip condition on already set name variable

Daniel-Constantin Mierla authored on 31/07/2017 13:32:57
Showing 1 changed files
... ...
@@ -145,7 +145,7 @@ end:
145 145
 					proto=UDP_SOCK;
146 146
 					DBG("guess:%s is a tcp socket\n", name);
147 147
 			}
148
-		}else if (name && strchr(name, '/')){
148
+		}else if (strchr(name, '/')){
149 149
 			switch(def){
150 150
 				case TCP_SOCK:
151 151
 				case UDP_SOCK: