[gs-commits] ghostpdl branch, master, updated. jbig2dec-0.14-1935-g0243f62
[email protected] (Ken Sharp) Fri, 22 Nov 2019 11:49:07 +0000 (UTC)
| Newsgroups | gmane.comp.printing.ghostscript.cvs |
|---|---|
| Message-ID | <[email protected]> |
The ghostpdl branch, master has been updated
via 0243f6288ca26b2985f0778040feebae7322ac0b (commit)
from d9d92ab6b774914d81f63c8e19d78e4022ad9976 (commit)
----------------------------------------------------------------------
commit 0243f6288ca26b2985f0778040feebae7322ac0b
Author: Ken Sharp <[email protected]>
Date: Fri Nov 22 11:49:02 2019 +0000
Coverity ID 94736
This was partially addressed in a previous commit (2 years ago) but
because the 'contrib' folder wasn't included in the ananlysis, this
second instance of the same problem didn't show up.
diff --git a/contrib/gdevcd8.c b/contrib/gdevcd8.c
index 5ceca0c..23532c0 100644
--- a/contrib/gdevcd8.c
+++ b/contrib/gdevcd8.c
@@ -1043,7 +1043,8 @@ hp_colour_open(gx_device * pdev)
default:
assert(0);
}
- gx_device_set_margins(pdev, m, true);
+ if (m != NULL)
+ gx_device_set_margins(pdev, m, true);
return gdev_prn_open(pdev);
}
Summary of changes:
contrib/gdevcd8.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)