ircd: get_or_create_channel: avoid clang static analysis warning
Use `len` after setting it.
This commit is contained in:
parent
f660af2155
commit
b9a6f1e5a1
1 changed files with 1 additions and 1 deletions
|
@ -426,7 +426,7 @@ get_or_create_channel(struct Client *client_p, const char *chname, bool *isnew)
|
||||||
}
|
}
|
||||||
len = CHANNELLEN;
|
len = CHANNELLEN;
|
||||||
t = LOCAL_COPY(s);
|
t = LOCAL_COPY(s);
|
||||||
*(t + CHANNELLEN) = '\0';
|
t[len] = '\0';
|
||||||
s = t;
|
s = t;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue