SHUFFCODE symbolcode;
/* Abrimos el source y el destino */
- if (shuff->coderfp != NULL) fclose(shuff->coderfp); /* close bychunk temp file */
+ if (shuff->coderfp != NULL) {
+ fclose(shuff->coderfp); /* close bychunk temp file */
+ shuff->coderfp = NULL;
+ }
if ((fpsource = fopen(shuff->sourcefile,"r")) == NULL) return 0;
if ((fpdest = vfopen(shuff->targetfile,"w",shuff->volsize)) == NULL) return 0;