fix crash on unknown shape - reported by Ryan Schmidt
authorellson <devnull@localhost>
Wed, 21 Jun 2006 13:31:28 +0000 (13:31 +0000)
committerellson <devnull@localhost>
Wed, 21 Jun 2006 13:31:28 +0000 (13:31 +0000)
lib/gvc/gvusershape.c

index b15c84ef3197a2f47daa15a221e8763aca168882..4317b8031f1a6cc34246aadef0ab65024b5b0350 100644 (file)
@@ -266,6 +266,9 @@ usershape_t *gvusershape_find(char *name)
 {
     usershape_t probe;
 
+    if (!ImageDict)
+       return NULL;
+
     probe.name = name;
     return (dtsearch(ImageDict, &probe));
 }