]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
o Initialize a local variable before referencing it. This was not
authorMike Makonnen <mtm@FreeBSD.org>
Fri, 26 Mar 2004 14:45:35 +0000 (14:45 +0000)
committerMike Makonnen <mtm@FreeBSD.org>
Fri, 26 Mar 2004 14:45:35 +0000 (14:45 +0000)
commit8733f60328ce6f3eac1eb16747c8e860f07cfff9
tree14b1e8ac9e7d77bffee09b374617233fb8226972
parentab82970ed2bc15c3b83fb33e8fd84faf072c8c42
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.
lib/libthr/thread/thr_find_thread.c