Re: Segmentation fault

From: Acido (acido@dvmud.net)
Date: 02/21/99


At 07:57 PM 2/21/99 -0800, you wrote:
>>#0  0x80889d4 in str_dup (source=0x0) at utils.c:84
>>84        CREATE(new_z, char, strlen(source) + 1);
>>(gdb)
>
>...
>
>bt, list, info locals, etc.  Find the function that's calling str_dup with a
>null string (source=0x0) and make it not.
>
>-B.

of coz you can also make a check in str_dup
if (!source || !*source)
  return;


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



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