m_grant: zero-initialize struct oper_conf

bug noticed by @xnrand
This commit is contained in:
Ed Kellett 2020-07-16 17:50:27 +01:00
parent 373ba193b8
commit 687ec8f766
No known key found for this signature in database
GPG key ID: CB9986DEF342FABC

View file

@ -150,10 +150,8 @@ static int do_grant(struct Client *source_p, struct Client *target_p, const char
if (dooper)
{
struct oper_conf oper;
struct oper_conf oper = {0};
oper.name = "<grant>";
oper.umodes = 0;
oper.snomask = 0;
oper.privset = privset;
oper_up(target_p, &oper);