diff options
-rw-r--r-- | xps/xps_resource.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xps/xps_resource.c b/xps/xps_resource.c index 7cbfe91f..c96f3619 100644 --- a/xps/xps_resource.c +++ b/xps/xps_resource.c @@ -144,9 +144,9 @@ xps_parse_resource_dictionary(xps_context *ctx, xps_resource **dictp, char *base } if (head) - { head->base_uri = fz_strdup(base_uri); - } + else + return fz_throw("empty resource dictionary"); *dictp = head; return fz_okay; |