int tsq = num_events - 1;
if (add_fqans && tsq == 0 && ctx->fqans != NULL) {
for (i=0; ctx->fqans[i]; i++);
- intstat->user_fqans = malloc(sizeof(*ctx->fqans)*(i+1));
+ intstat->pub.user_fqans = malloc(sizeof(*ctx->fqans)*(i+1));
for (i=0; ctx->fqans[i]; i++) {
- intstat->user_fqans[i] = strdup(ctx->fqans[i]);
+ intstat->pub.user_fqans[i] = strdup(ctx->fqans[i]);
}
- intstat->user_fqans[i] = NULL;
+ intstat->pub.user_fqans[i] = NULL;
}
edg_wll_StoreIntState(ctx, intstat, tsq);
string_jobid = edg_wlc_JobIdUnparse(stat->jobId);
string_stat = edg_wll_StatToString(stat->state);
string_server = edg_wlc_JobIdGetServer(stat->jobId);
- string_fqans = format_strlist(intstat->user_fqans, '|');
+ string_fqans = format_strlist(intstat->pub.user_fqans, '|');
if (stat->jdl != NULL) {
struct cclassad *ad;
if (p->last_branch_seqcode) free(p->last_branch_seqcode);
if (p->deep_resubmit_seqcode) free(p->deep_resubmit_seqcode);
free_branch_state(&p->branch_states);
- if (p->user_fqans != NULL ) {
- for (i=0; p->user_fqans[i]; i++)
- free(p->user_fqans[i]);
- free(p->user_fqans);
- }
memset(p,0,sizeof(*p));
}