git: DragonFly_RELEASE_3_0 libthread_xu/libc_r: Improve the check for EINVAL in sem_* functions.

Sascha Wildner swildner at crater.dragonflybsd.org
Tue Feb 28 14:45:36 PST 2012


commit 19b92a34330f1d18765aa08f4fb31cc97dcb50ed
Author: Sascha Wildner <saw at online.de>
Date:   Tue Feb 28 23:44:29 2012 +0100

    libthread_xu/libc_r: Improve the check for EINVAL in sem_* functions.
    
    Before referencing *sem->... in the check, do not just test if sem is
    NULL but also if *sem is NULL.
    
    Reported-by: Max Herrgard <herrgard at gmail.com>

Summary of changes:
 lib/libc_r/uthread/uthread_sem.c  |    4 ++--
 lib/libthread_xu/thread/thr_sem.c |    2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/19b92a34330f1d18765aa08f4fb31cc97dcb50ed


-- 
DragonFly BSD source repository





More information about the Commits mailing list