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)) if(ServerConfIllegal(server_p))
continue; continue;
buf[0] = '\0';
s = buf; s = buf;
if(IsOper(source_p)) if(IsOper(source_p))
@ -316,7 +315,7 @@ stats_connect(struct Client *source_p)
*s++ = 'Z'; *s++ = 'Z';
} }
if(!buf[0]) if(s == buf)
*s++ = '*'; *s++ = '*';
*s = '\0'; *s = '\0';