[Circle] do_guild help pls? warning I don't like..

From: Brian Williams - Nashak (bmw@efn.org)
Date: 08/02/96


act.wizard.c: In function `do_guild':
act.wizard.c: 178: warning: `vict' might be used uninitialized in this function

here is whole do_guild:
ACMD(do_guild)
{
  struct char_data *vict;
  *buf = '\0';

  if (!IS_NPC(vict) && !PRF_FLAGGED(vict, PRF_GUILD)) {
    sprintf(buf, "$N is now a guild member.");
    send_to_char(buf, ch);
    send_to_char("You are now a guild member.", vict);
    SET_BIT(PRF_FLAGS(vict), PRF_GUILD);
  } else {
    send_to_char("They are already in a guild.", ch);
    return;
  }
}

thanks in advance


   Nashak			Brian Williams		The Realms of Luminari
   nashak@darkstr.com		bmw@efn.org		darkstr.com 6969



+-----------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
|   http://cspo.queensu.ca/~fletcher/Circle/list_faq.html   |
+-----------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/07/00 PST