From d8dce4e225c3c24220dd0f319cf3eaa7d664dcf8 Mon Sep 17 00:00:00 2001 From: josh Date: Wed, 29 Nov 2006 20:37:52 +0000 Subject: [PATCH] fixed Ake Sandgren's segfault report git-svn-id: svn://opensvn.adaptivecomputing.com/maui/trunk@77 3f5042e3-fb1d-0410-be18-d6ca2573e517 --- src/moab/MPriority.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/moab/MPriority.c b/src/moab/MPriority.c index cee9771..81ebd26 100644 --- a/src/moab/MPriority.c +++ b/src/moab/MPriority.c @@ -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++)