]> jfr.im git - irc/charybdis-ircd/charybdis.git/commitdiff
m_grant: zero-initialize struct oper_conf
authorEd Kellett <redacted>
Thu, 16 Jul 2020 16:50:27 +0000 (17:50 +0100)
committerEd Kellett <redacted>
Thu, 16 Jul 2020 16:59:27 +0000 (17:59 +0100)
bug noticed by @xnrand

modules/m_grant.c

index 1c300a8ba78614d808f1d7a5df6b480653ad61e7..8ed1386b40bd67c3ada07940de60ce9936ad5244 100644 (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);