Ver Fonte

fix the compilation warning

z3APA3A há 5 anos atrás
pai
commit
d529d91736
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      src/common.c

+ 1 - 1
src/common.c

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