Dan Winship <[EMAIL PROTECTED]> writes:
> > Simply delete the call to _cleanup from the file mf.c.
>
> Our local Linux guy replaced it with a call to "fcloseall"... I don't
> know enough about what the code is doing to be able to say if that's
> better/right. Anyone?
The intention of the code is to abort if getcpy is called with a NULL
argument. The way it is written, though, is a bit, uhm, peculiar.
Instead of fcloseall(), which is a GNUism, I would use fflush(NULL).
Better yet, replace that whole strange piece of code with something
like
if (!s) {
fprintf(stderr, "Internal error: getcpy called with NULL argument.\n");
exit(1);
}
- Ruud de Rooij.
--
ruud de rooij | [EMAIL PROTECTED] | http://ruud.org