From: Jiří Škrábal Date: Mon, 15 Aug 2005 08:33:57 +0000 (+0000) Subject: - nil the memmory at the end of the list (siple coredump reason) X-Git-Tag: gridsite-core_R_1_1_11~65 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=240df3bd8a17e3982483ffe0863af022f21a6ce5;p=jra1mw.git - nil the memmory at the end of the list (siple coredump reason) --- diff --git a/org.glite.lb.client/src/lb_dump_exporter.c b/org.glite.lb.client/src/lb_dump_exporter.c index 55d148d..28bf04c 100644 --- a/org.glite.lb.client/src/lb_dump_exporter.c +++ b/org.glite.lb.client/src/lb_dump_exporter.c @@ -232,6 +232,7 @@ static dump_storage_t *dump_storage_add(dump_storage_t **st, char *job, char *fn if ( !(tmp->job = strdup(job)) ) return NULL; if ( !(tmp->fname = strdup(fname)) ) { free(tmp->job); return NULL; } tmp->fhnd = fhnd; + (tmp+1)->job = NULL; return tmp; }