Bug 1176099 - Fix missing NULL check r=luke

MozReview-Commit-ID: ICNQNqJZzA8
This commit is contained in:
Julian Hector 2016-04-28 20:41:14 +02:00
parent c96fa5c0c8
commit 4c291ae709

View File

@ -31,7 +31,7 @@ static int HandleSigset(int (*aRealFunc)(int, const sigset_t*, sigset_t*),
}
// Avoid unnecessary work
if (aHow == SIG_UNBLOCK || !sigismember(aSet, SIGSYS))
if (aSet == NULL || aHow == SIG_UNBLOCK || !sigismember(aSet, SIGSYS))
return aRealFunc(aHow, aSet, aOldSet);
sigset_t newSet = *aSet;