Quash an initializer warning in the initial user-mode array.
authorMichael Poole <mdpoole@troilus.org>
Tue, 14 Aug 2007 03:04:05 +0000 (03:04 +0000)
committerMichael Poole <mdpoole@troilus.org>
Tue, 14 Aug 2007 03:04:05 +0000 (03:04 +0000)
git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/branches/u2_10_12_branch@1828 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

ChangeLog
ircd/s_user.c

index 0decd5e41473b22db817a96e470d1dc88d2f750f..043cf2ba801b5eba17279ddb829d591c9b4b74bb 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-08-13  Michael Poole <mdpoole@troilus.org>
+
+       * ircd/s_user.c (register_user): Initialize umodev[] in a
+       C89-compatible way.  (gcc 4.1.2 warned about it.)
+
 2007-08-13  Michael Poole <mdpoole@troilus.org>
 
        * ircd/m_names.c (do_names): Add NAMES_DEL to comment.  Avoid use
index ed5951fd00f1cf3e8c190c026458c83f1febdbcc..a859ef8868878f53365108637d1af974e61429a6 100644 (file)
@@ -390,7 +390,8 @@ int register_user(struct Client *cptr, struct Client *sptr)
      */
     tmpstr = (char*)client_get_default_umode(sptr);
     if (tmpstr) {
-      char *umodev[] = { NULL, NULL, tmpstr, NULL };
+      char *umodev[] = { NULL, NULL, NULL, NULL };
+      umodev[2] = tmpstr;
       set_user_mode(cptr, sptr, 1, umodev, ALLOWMODES_ANY);
     }