stats c: Simplify construction of flags string.
Perhaps this avoids false positives in static analysis.
This commit is contained in:
parent
3cbcc11195
commit
f76ca17848
1 changed files with 1 additions and 2 deletions
|
@ -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';
|
||||
|
|
Loading…
Reference in a new issue