]> granicus.if.org Git - graphviz/commitdiff
don't close stdout
authorellson <devnull@localhost>
Tue, 27 Jun 2006 16:21:03 +0000 (16:21 +0000)
committerellson <devnull@localhost>
Tue, 27 Jun 2006 16:21:03 +0000 (16:21 +0000)
lib/gvc/gvdevice.c

index b95a227a4aab9e725c490a13f41f4ea3780cf991..0f6ffc7d73427480cdb3f8d59f94930511f10528 100644 (file)
@@ -98,7 +98,7 @@ void gvdevice_finalize(GVC_t * gvc)
 
     /* FIXME - file output should be its own device */
     while(active_job) {
-       if (active_job->output_file) {
+       if (active_job->output_file != stdout) {
            fclose(active_job->output_file);
            active_job->output_file = NULL;
        }