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

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


commit f36c8b06188cc623295c960acecc17686486c9ea
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/f36c8b06188cc623295c960acecc17686486c9ea


-- 
DragonFly BSD source repository





More information about the Commits mailing list