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))
|
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';
|
||||||
|
|
Loading…
Reference in a new issue