diff options
Diffstat (limited to 'base/gxpath2.c')
-rw-r--r-- | base/gxpath2.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/base/gxpath2.c b/base/gxpath2.c index 49cad4d7..ed795ca5 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; |