From 1b4c4d0fd4665722fc93cbfb0acfecf80a1bf9ad Mon Sep 17 00:00:00 2001 From: dev Date: Mon, 12 Sep 2005 16:48:28 +0000 Subject: [PATCH] fix rsv pointer bug git-svn-id: svn://opensvn.adaptivecomputing.com/maui/trunk@31 3f5042e3-fb1d-0410-be18-d6ca2573e517 --- src/moab/MRes.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/moab/MRes.c b/src/moab/MRes.c index ca69e3a..473c516 100644 --- a/src/moab/MRes.c +++ b/src/moab/MRes.c @@ -7177,6 +7177,9 @@ int MResAdjustDRes( if (jreindex >= (MSched.ResDepth << 1) - 1) break; + if ((N->R[N->RE[nreindex].Index] == NULL) || (N->R[N->RE[nreindex].Index] == (mrsv_t *)1)) + continue; + if (N->R[N->RE[nreindex].Index]->Type == mrtJob) { JRETime = N->RE[nreindex].Time;