/[svn]/ircd-hybrid/trunk/src/conf.c
ViewVC logotype

Diff of /ircd-hybrid/trunk/src/conf.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 6698 by michael, Thu Oct 29 13:08:59 2015 UTC revision 6700 by michael, Thu Oct 29 13:12:04 2015 UTC
# Line 1095  oper_privs_as_string(const unsigned int Line 1095  oper_privs_as_string(const unsigned int
1095    static char privs_out[IRCD_BUFSIZE];    static char privs_out[IRCD_BUFSIZE];
1096    char *privs_ptr = privs_out;    char *privs_ptr = privs_out;
1097    
   *privs_ptr = '0';  
   
1098    for (const struct oper_privs *opriv = flag_list; opriv->flag; ++opriv)    for (const struct oper_privs *opriv = flag_list; opriv->flag; ++opriv)
1099      if (port & opriv->flag)      if (port & opriv->flag)
1100        *privs_ptr++ = opriv->c;        *privs_ptr++ = opriv->c;
1101    
1102      if (privs_ptr == privs_out)
1103        *privs_ptr++ = '0';
1104    
1105    *privs_ptr = '\0';    *privs_ptr = '\0';
1106    
1107    return privs_out;    return privs_out;

Legend:
Removed from v.6698  
changed lines
  Added in v.6700

svnadmin@ircd-hybrid.org
ViewVC Help
Powered by ViewVC 1.1.30