From: erg Date: Tue, 8 Jul 2008 19:41:06 +0000 (+0000) Subject: Avoid error message if image="" X-Git-Tag: LAST_LIBGRAPH~32^2~3871 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=aef95de4d6095b5d8ff4cb78d2f50484d81ec636;p=graphviz Avoid error message if image="" --- diff --git a/lib/common/shapes.c b/lib/common/shapes.c index 32f0883ee..72f41fb22 100644 --- a/lib/common/shapes.c +++ b/lib/common/shapes.c @@ -792,7 +792,7 @@ static void poly_init(node_t * n) } } } - else if ((sfile = agget(n, "image"))) { + else if ((sfile = agget(n, "image")) && (*sfile != '\0')) { imagesize = gvusershape_size(n->graph, sfile); if ((imagesize.x == -1) && (imagesize.y == -1)) { agerr(AGWARN,