From: erg Date: Fri, 4 Aug 2006 21:36:21 +0000 (+0000) Subject: Make sure jobs have been created before assigning to local variables. X-Git-Tag: LAST_LIBGRAPH~32^2~6004 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=041f6e80e8bad894c836388f30dc2973b7550686;p=graphviz Make sure jobs have been created before assigning to local variables. --- diff --git a/lib/gvc/gvc.c b/lib/gvc/gvc.c index ee758a3d8..920620eb0 100644 --- a/lib/gvc/gvc.c +++ b/lib/gvc/gvc.c @@ -87,13 +87,15 @@ int gvLayout(GVC_t *gvc, graph_t *g, char *engine) int gvRender(GVC_t *gvc, graph_t *g, char *format, FILE *out) { int rc; - GVJ_t *job = gvc->job; - GVJ_t *firstjob = gvc->active_jobs; + GVJ_t *job; + GVJ_t *firstjob; g = g->root; /* create a job for the required format */ rc = gvjobs_output_langname(gvc, format); + job = gvc->job; + firstjob = gvc->active_jobs; if (rc == NO_SUPPORT) { agerr (AGERR, "Renderer type: \"%s\" not recognized. Use one of:%s\n", format, gvplugin_list(gvc, API_render, format));