From: František Dvořák Date: Tue, 20 Feb 2007 10:33:18 +0000 (+0000) Subject: Make sure the attribute is not NULL. X-Git-Tag: glite-jp-primary_R_1_2_3_1~3 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=ed0873c962f31357ec43edf08e1339853496bafa;p=jra1mw.git Make sure the attribute is not NULL. --- diff --git a/org.glite.jp.primary/src/attrs.c b/org.glite.jp.primary/src/attrs.c index 7099dd1..4eef226 100644 --- a/org.glite.jp.primary/src/attrs.c +++ b/org.glite.jp.primary/src/attrs.c @@ -147,7 +147,7 @@ glite_jpps_get_attrs(glite_jp_context_t ctx,const char *job,char **attr,int natt for (j=0; jops.attr(p->fpctx,ph,other[j],&myattr)) { + if (!p->ops.attr(p->fpctx,ph,other[j],&myattr) && myattr) { int k; for (k=0; myattr[k].name; k++) { myattr[k].origin = GLITE_JP_ATTR_ORIG_FILE;