diff options
author | Sebastian Rasmussen <sebras@hotmail.com> | 2009-06-27 23:36:30 +0200 |
---|---|---|
committer | Sebastian Rasmussen <sebras@hotmail.com> | 2009-06-27 23:36:30 +0200 |
commit | ede3e88681d54b4aac6bf3f42519869f24126923 (patch) | |
tree | 792924abbd8beb078fbae7e6a35c09152813fcb6 /fitz/obj_dict.c | |
parent | d08288e34edd7a1d40b799d2f9f1415f6e0ba667 (diff) | |
download | mupdf-ede3e88681d54b4aac6bf3f42519869f24126923.tar.xz |
Check for non-existing values for dict entries.
Diffstat (limited to 'fitz/obj_dict.c')
-rw-r--r-- | fitz/obj_dict.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fitz/obj_dict.c b/fitz/obj_dict.c index c956fa4d..24f24e56 100644 --- a/fitz/obj_dict.c +++ b/fitz/obj_dict.c @@ -292,6 +292,9 @@ fz_dictput(fz_obj *obj, fz_obj *key, fz_obj *val) else return fz_throw("assert: key is not string or name (%s)", fz_objkindstr(obj)); + if (!val) + return fz_throw("assert: val does not exist for key (%s)", s); + i = dictfinds(obj, s); if (i >= 0) { |