stats c: Simplify construction of flags string.

Perhaps this avoids false positives in static analysis.
This commit is contained in:
Jilles Tjoelker 2014-02-24 00:10:42 +01:00
parent 3cbcc11195
commit f76ca17848

View file

@ -301,7 +301,6 @@ stats_connect(struct Client *source_p)
if(ServerConfIllegal(server_p))
continue;
buf[0] = '\0';
s = buf;
if(IsOper(source_p))
@ -316,7 +315,7 @@ stats_connect(struct Client *source_p)
*s++ = 'Z';
}
if(!buf[0])
if(s == buf)
*s++ = '*';
*s = '\0';