- nil the memmory at the end of the list (siple coredump reason)
authorJiří Škrábal <nykolas@ics.muni.cz>
Mon, 15 Aug 2005 08:33:57 +0000 (08:33 +0000)
committerJiří Škrábal <nykolas@ics.muni.cz>
Mon, 15 Aug 2005 08:33:57 +0000 (08:33 +0000)
org.glite.lb.client/src/lb_dump_exporter.c

index 55d148d..28bf04c 100644 (file)
@@ -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;
 }