Re: Strange String BUG

From: George (greerga@CIRCLEMUD.ORG)
Date: 09/19/98


On Sat, 19 Sep 1998, Tony Robbins [Kupek] wrote:

>Ok, now you know why I'm hating strings.  Somehow, in this amount of code:
>
>(from read_aliases(), standard alias package)
>    /* get alias file name */
>    log(GET_NAME(ch));
>    get_filename(GET_NAME(ch), pcFileName, ALIAS_FILE);
>
>the log() works fine, but get_filename insists that GET_NAME(ch) is
>NULL/0x0.

Are you sure that it's GET_NAME() that is NULL and not the others?

>    CREATE(victim, struct char_data, 1);
>    clear_char(victim);
>    if (load_char(vict, &tmp_store) > -1) {
>      store_to_char(&tmp_store, victim);
>      if (GET_LEVEL(victim) <= GET_LEVEL(ch)) {
>        victim->next = character_list;
>        character_list = victim;
>        victim->desc = NULL;
>        char_to_room(victim, ch->in_room);
>        read_aliases(victim);  <---- crashes here.

Looks about normal.  GDB backtrace/info locals/list available?

--
George Greer, greerga@circlemud.org | Genius may have its limitations, but
http://mouse.van.ml.org/   (mostly) | stupidity is not thus handicapped.
http://www.van.ml.org/CircleMUD/    |                  -- Elbert Hubbard


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



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