Explorar el Código

fix the compilation warning

z3APA3A hace 5 años
padre
commit
29f8867a9e
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/common.c

+ 1 - 1
src/common.c

@@ -293,7 +293,7 @@ int parsehostname(char *hostname, struct clientparam *param, unsigned short port
 
 	if(!hostname || !*hostname)return 2;
 	if(*hostname == '[') se=strchr(hostname, ']');
-	if (sp = strchr(se?se:hostname, ':')) {
+	if ((sp = strchr(se?se:hostname, ':'))) {
 		if(strchr(sp+1, ':'))sp = NULL;
 		else *sp = 0;
 	}