From 9cc3ca55f506df423e1f398899489927e2c30df9 Mon Sep 17 00:00:00 2001 From: ellson Date: Thu, 14 Apr 2005 12:12:20 +0000 Subject: [PATCH] fix check for plugin when processing -T args. --- lib/common/input.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/common/input.c b/lib/common/input.c index f1158599f..aaba189fd 100644 --- a/lib/common/input.c +++ b/lib/common/input.c @@ -197,7 +197,7 @@ void dotneato_initialize(GVC_t * gvc, int argc, char **argv) exit(1); } v = gvrender_output_langname_job(gvc, val); - if (v == NO_SUPPORT) { + if (!v) { fprintf(stderr, "Renderer type: \"%s\" not recognized. Use one of:%s\n", val, gvplugin_list(gvc, API_render, val)); exit(1); @@ -298,7 +298,7 @@ void dotneato_initialize(GVC_t * gvc, int argc, char **argv) /* if no -Txxx, then set default format */ if (!gvc->jobs || !gvc->jobs->output_langname) { v = gvrender_output_langname_job(gvc, "dot"); - assert(v != NO_SUPPORT); + assert(v); /* "dot" should always be available as an output format */ } #if !defined(DISABLE_CODEGENS) && !defined(HAVE_GD_FREETYPE) -- 2.40.0