diff options
author | Sam James <sam@gentoo.org> | 2022-09-21 14:18:08 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2022-10-02 04:31:25 +0100 |
commit | a529111f77ff46f4836fe7312e70953bc16587cf (patch) | |
tree | 9dc3924cb1a6ef3ef853b7bb45f735365e0b4e6d /devices/vector/gdevpdfo.c | |
parent | Import Ghostscript 9.56.1 (diff) | |
download | ghostscript-gpl-patches-ghostscript-10.tar.gz ghostscript-gpl-patches-ghostscript-10.tar.bz2 ghostscript-gpl-patches-ghostscript-10.zip |
Import Ghostscript 10.0ghostscript-10.0ghostscript-10
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'devices/vector/gdevpdfo.c')
-rw-r--r-- | devices/vector/gdevpdfo.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/devices/vector/gdevpdfo.c b/devices/vector/gdevpdfo.c index 3ec00f5e..e00a9258 100644 --- a/devices/vector/gdevpdfo.c +++ b/devices/vector/gdevpdfo.c @@ -1485,6 +1485,8 @@ cos_dict_find(const cos_dict_t *pcd, const byte *key_data, uint key_size) const cos_value_t * cos_dict_find_c_key(const cos_dict_t *pcd, const char *key) { + if (pcd == NULL) + return NULL; return cos_dict_find(pcd, (const byte *)key, strlen(key)); } |