libthread_xu/libc_r: Improve the check for EINVAL in sem_* functions.
authorSascha Wildner <saw@online.de>
Tue, 28 Feb 2012 22:44:29 +0000 (23:44 +0100)
committerSascha Wildner <saw@online.de>
Tue, 28 Feb 2012 22:45:06 +0000 (23:45 +0100)
commit19b92a34330f1d18765aa08f4fb31cc97dcb50ed
tree69516a2868f1bccbc8395d44d6399101aa9be767
parent25967a0e3b3fdb55b884dcacec26326a80b34cb8
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@gmail.com>
lib/libc_r/uthread/uthread_sem.c
lib/libthread_xu/thread/thr_sem.c