cvs commit: src/lib/libthr/thread thr_find_thread.c
Mike Makonnen
mtm at FreeBSD.org
Fri Mar 26 06:45:35 PST 2004
mtm 2004/03/26 06:45:35 PST
FreeBSD src repository
Modified files:
lib/libthr/thread thr_find_thread.c
Log:
o Initialize a local variable before referencing it. This was not
the cause of any bugs because it is *always* indirectly set
in the for...loop, but better to be explicit about it.
o Check the magic number of the passed in thread only after it has
been found in the active thread list. Otherwise, if the check is done
at the very beginning we may end up pointing to garbage if the
thread was once a valid thread, but has now been destroyed.
Revision Changes Path
1.4 +4 -1 src/lib/libthr/thread/thr_find_thread.c
More information about the cvs-src
mailing list