From d529d9173681c237c3d704537e4ffb970a684e0f Mon Sep 17 00:00:00 2001 From: z3APA3A <3APA3A@3proxy.ru> Date: Wed, 2 Dec 2020 11:13:55 +0300 Subject: [PATCH] fix the compilation warning --- src/common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common.c b/src/common.c index 027d31e..ee8550e 100644 --- a/src/common.c +++ b/src/common.c @@ -297,7 +297,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; }