From 4cb2734350022fe725de3d0cdcb52f055052397e Mon Sep 17 00:00:00 2001 From: ellson Date: Wed, 21 Jun 2006 13:31:28 +0000 Subject: [PATCH] fix crash on unknown shape - reported by Ryan Schmidt --- lib/gvc/gvusershape.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/gvc/gvusershape.c b/lib/gvc/gvusershape.c index b15c84ef3..4317b8031 100644 --- a/lib/gvc/gvusershape.c +++ b/lib/gvc/gvusershape.c @@ -266,6 +266,9 @@ usershape_t *gvusershape_find(char *name) { usershape_t probe; + if (!ImageDict) + return NULL; + probe.name = name; return (dtsearch(ImageDict, &probe)); } -- 2.40.0