summaryrefslogtreecommitdiff
path: root/base/gxpath2.c
diff options
context:
space:
mode:
Diffstat (limited to 'base/gxpath2.c')
-rw-r--r--base/gxpath2.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/base/gxpath2.c b/base/gxpath2.c
index 49cad4d7c..ed795ca5c 100644
--- a/base/gxpath2.c
+++ b/base/gxpath2.c
@@ -58,6 +58,9 @@ gx_path_subpath_start_point(const gx_path * ppath, gs_fixed_point * ppt)
int
gx_path_bbox(gx_path * ppath, gs_fixed_rect * pbox)
{
+ if (ppath == NULL) {
+ return_error(gs_error_unknownerror) ;
+ }
if (ppath->bbox_accurate) {
/* The bounding box was set by setbbox. */
*pbox = ppath->bbox;