From 13d8a0224c13503e0eb8fd6c6dbced38f487c795 Mon Sep 17 00:00:00 2001 From: dev Date: Fri, 14 Oct 2005 23:17:24 +0000 Subject: [PATCH] check PBS ErrMsg git-svn-id: svn://opensvn.adaptivecomputing.com/maui/trunk@40 3f5042e3-fb1d-0410-be18-d6ca2573e517 --- include/msched-version.h | 2 +- src/moab/MAM.c | 4 ++-- src/moab/MPBSI.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/msched-version.h b/include/msched-version.h index 121ce66..23dc6de 100644 --- a/include/msched-version.h +++ b/include/msched-version.h @@ -1 +1 @@ -#define MSCHED_VERSION "maui-3.2.6p14-snap.1129170413" +#define MSCHED_VERSION "maui-3.2.6p14-snap.1129172045" diff --git a/src/moab/MAM.c b/src/moab/MAM.c index 18d51d8..757daff 100644 --- a/src/moab/MAM.c +++ b/src/moab/MAM.c @@ -884,11 +884,11 @@ int MAMAllocRDebit( MXMLAddE(JE,AE); } - if (MSched.Name[0] != '\0') + if (MRM[0].Name[0] != '\0') { AE = NULL; MXMLCreateE(&AE,"MachineName"); - MXMLSetVal(AE,(void *)MSched.Name,mdfString); + MXMLSetVal(AE,(void *)MRM[0].Name,mdfString); MXMLAddE(JE,AE); } diff --git a/src/moab/MPBSI.c b/src/moab/MPBSI.c index cfa3fcb..b45e501 100644 --- a/src/moab/MPBSI.c +++ b/src/moab/MPBSI.c @@ -594,7 +594,7 @@ int MPBSWorkloadQuery( else { DBG(0,fPBS) DPrint("ALERT: queue is empty or cannot get PBS job info: %s\n", - ErrMsg); + (ErrMsg != NULL) ? ErrMsg : "N/A"); R->U.PBS.ServerSDTimeStamp = 0;