git://scientific.zcu.cz
/
jra1mw.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f42cb32
)
foolproof JDL parsing (the field may not contain classad but just
author
Aleš Křenek
<ljocha@ics.muni.cz>
Tue, 17 Feb 2009 16:33:37 +0000
(16:33 +0000)
committer
Aleš Křenek
<ljocha@ics.muni.cz>
Tue, 17 Feb 2009 16:33:37 +0000
(16:33 +0000)
filename temporarily)
org.glite.lb.common/src/status.c.T
patch
|
blob
|
blame
|
history
diff --git
a/org.glite.lb.common/src/status.c.T
b/org.glite.lb.common/src/status.c.T
index
f9358f2
..
83d1902
100644
(file)
--- a/
org.glite.lb.common/src/status.c.T
+++ b/
org.glite.lb.common/src/status.c.T
@@
-211,6
+211,10
@@
char *edg_wll_JDLField(edg_wll_JobStat *stat, const char *field_name)
if (stat->jdl_classad == NULL) { //classad had not been unparsed yet
stat->jdl_classad = (struct classad*)cclassad_create(stat->jdl);
+
+ /* XXX: Can't parse, likely due to filename
+ which is logged first, than replaced by content */
+ if (!stat->jdl_classad) return NULL;
}
if (cclassad_evaluate_to_string(stat->jdl_classad, field_name, &extr_val)) {