amfree(label);
return NULL;
}
+ /* set tapefcount, it is increased below */
+ tapefcount = fileno - 1;
skip_integer(s, ch);
skip_whitespace(s, ch);
if(ch == '\0') {
if(current_tape == NULL) {
error("current_tape == NULL");
}
+ ++tapefcount;
if (sp->filenum == 0) {
- sp->filenum = ++tapefcount;
+ sp->filenum = tapefcount;
sp->tapelabel = current_tape->label;
}
tapechunks[level] +=1;
/*NOTREACHED*/
}
stats[i].taper_time += sec;
- sp->filenum = ++tapefcount;
- sp->tapelabel = current_tape->label;
+ if (sp->filenum == 0) {
+ sp->filenum = ++tapefcount;
+ sp->tapelabel = current_tape->label;
+ }
sp->totpart = totpart;
tapedisks[level] +=1;
stats[i].tapedisks +=1;