fixed Ake Sandgren's segfault report

git-svn-id: svn://opensvn.adaptivecomputing.com/maui/trunk@77 3f5042e3-fb1d-0410-be18-d6ca2573e517
This commit is contained in:
josh 2006-11-29 20:37:52 +00:00
parent e02cc1aac5
commit d8dce4e225

View File

@ -116,7 +116,11 @@ int MJobGetStartPriority(
if (X.XJobGetStartPriority != (int (*)())0)
{
return((*X.XJobGetStartPriority)(X.xd,J,Priority,*BPtr));
return (*X.XJobGetStartPriority)(
X.xd,
J,
Priority,
(BPtr != NULL) ? *BPtr : NULL);
}
for (index = 1;index < MAX_MPRIOCOMPONENT;index++)