]> granicus.if.org Git - graphviz/commitdiff
Fix bug affecting old codegens. Need to make sure Output_file is
authorerg <devnull@localhost>
Tue, 20 Mar 2007 21:00:53 +0000 (21:00 +0000)
committererg <devnull@localhost>
Tue, 20 Mar 2007 21:00:53 +0000 (21:00 +0000)
initialized before calling begin_job. The removes an assignment
of Output_file from mpgen which was used to solve the same problem.
Here we are solving it for all of the codegens.

lib/common/mpgen.c

index 08fbfb8b6b01b35853b7e531391fb30e24aeedff..63a79b2cc2387957071b191c6524decee1711c77 100644 (file)
@@ -59,7 +59,6 @@ mp_begin_job(FILE * ofp, graph_t * g, char **lib, char *user, char *info[],
     /* N_pages = pages.x * pages.y; */
     /* Cur_page = 0; */
 
-    Output_file = ofp;
     fprintf(Output_file, "%%--- graphviz MetaPost input\n");
     fprintf(Output_file, "%% Created by program: %s version %s (%s)\n",
            info[0], info[1], info[2]);