Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 26 Mar 2004 06:45:35 -0800 (PST)
From:      Mike Makonnen <mtm@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/lib/libthr/thread thr_find_thread.c
Message-ID:  <200403261445.i2QEjZH1099282@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200403261445.i2QEjZH1099282>