Fixed initialization of job status.
authorJiří Filipovič <fila@ics.muni.cz>
Fri, 12 Mar 2010 13:38:38 +0000 (13:38 +0000)
committerJiří Filipovič <fila@ics.muni.cz>
Fri, 12 Mar 2010 13:38:38 +0000 (13:38 +0000)
org.glite.lb.state-machine/src/process_event.c

index 5d91734..08e8712 100644 (file)
@@ -1086,6 +1086,7 @@ void destroy_intJobStat(intJobStat *p)
 void init_intJobStat(intJobStat *p)
 {
        memset(p, 0, sizeof(intJobStat));
+       edg_wll_InitStatus(&(p->pub));
        p->pub.jobtype = -1 /* why? EDG_WLL_STAT_SIMPLE */;
        p->pub.children_hist = (int*) calloc(1+EDG_WLL_NUMBER_OF_STATCODES, sizeof(int));
        p->pub.children_hist[0] = EDG_WLL_NUMBER_OF_STATCODES;