Matthew White <mehw.is...@inventati.org> writes:

> +              */
> +              if (!output_stream && (output_stream = fopen (filename, "rb")))
> +                {
> +                  fclose (output_stream);
> +                  output_stream = fopen (filename, "ab");
> +                }

please use file_exists_p instead of opening and closing the file:

if (!output_stream && file_exists_p (output_stream))
   output_stream = fopen (filename, "ab");

Giuseppe

Reply via email to