- /* Save and restore buffer so we don't trash our dynamic pool! */
- if (bodycomp) {
- saved_c_text = bodycomp->c_text;
- bodycomp->c_text = tmpbuf;
- }
-
- if (outnum > 0) {
- dat[2] = ftell(scnout);
- if (dat[2] == EOF)
- DIEWRERR();
+ if (incing) {
+ if ((dat[2] = ftell(scnout)) == EOF)
+ adios(scnmsg, "write error on");