--- Josh <[EMAIL PROTECTED]> wrote:
> Ok i was playing around with my first descriptor loop(i wanted to see if an
> id matched any character playing...) and i kept (might be keep, dunno havent
> had real time to test it) getting segmentation faults.
> 
> Not having gdb (don't ask... its broke) i made little functions to test
> things, and one i did tested to see if the d->character was NULL, i was
> surprised when i had a couple NULL characters on my descriptor list.  Did i
> 
> A) delete something i shouldnt have somewhere?
> B) do something wrong?
> C) thats normal to have a couple d->characters on your descriptor_list NULL
> D) waste your time with a stupid newbie question?
> 

This is typical. It occurs when someone has connected to the mud, but has not
yet been assigned a character.. Like looking at the login prompt, or whatever.
As long as you make the appropriate tests you won't have any problems.

~Kender

=====
-----BEGIN GEEK CODE BLOCK-----
Version 3.1
GCS/L/C/O d-(+) s++:+ a-- C+++$>++++ UBLS++++$ 
P+++(--)$ L++>+++ E--- W+>++$ N !o K? w(--) !O 
M- !V PS+ PE(++) Y+ PGP->+ t- 5 X+() R(+) tv+@ 
b++(+++) !DI+++ D G(-) e>+++$ h---() r+++ y+++
------END GEEK CODE BLOCK------

__________________________________________________
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/

Reply via email to