]> granicus.if.org Git - graphviz/commitdiff
Fix core dump in gvrender_finalize when there are no active jobs
authorerg <devnull@localhost>
Mon, 6 Jun 2005 16:30:28 +0000 (16:30 +0000)
committererg <devnull@localhost>
Mon, 6 Jun 2005 16:30:28 +0000 (16:30 +0000)
lib/common/input.c

index 6bcfd9bc921592b3942598f5fc017d510ae6ee7a..49e2091d2790792836192b231d820ef336c1e338 100644 (file)
@@ -745,7 +745,8 @@ void do_graph_label(graph_t * sg)
 
 void dotneato_terminate(GVC_t * gvc)
 {
-    gvrender_finalize(gvc);
+    if (gvc->active_jobs)
+       gvrender_finalize(gvc);
     emit_jobs_eof(gvc);
     exit(graphviz_errors + agerrors());
 }