From: erg Date: Tue, 20 Mar 2007 21:00:53 +0000 (+0000) Subject: Fix bug affecting old codegens. Need to make sure Output_file is X-Git-Tag: LAST_LIBGRAPH~32^2~5614 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=08b89000df6ab898dc218e462845cab19beb4f31;p=graphviz Fix bug affecting old codegens. Need to make sure Output_file is 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. --- diff --git a/lib/common/mpgen.c b/lib/common/mpgen.c index 08fbfb8b6..63a79b2cc 100644 --- a/lib/common/mpgen.c +++ b/lib/common/mpgen.c @@ -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]);