[gs-cvs] rev 9385 - trunk/gs/base

ken at ghostscript.com ken at ghostscript.com
Thu Jan 22 05:15:08 PST 2009


Author: ken
Date: 2009-01-22 05:15:07 -0800 (Thu, 22 Jan 2009)
New Revision: 9385

Modified:
   trunk/gs/base/gdevps.c
Log:
Check the return value of gdev_prepare_stroke. Another warning from Coverity.


Modified: trunk/gs/base/gdevps.c
===================================================================
--- trunk/gs/base/gdevps.c	2009-01-22 02:53:01 UTC (rev 9384)
+++ trunk/gs/base/gdevps.c	2009-01-22 13:15:07 UTC (rev 9385)
@@ -1316,8 +1316,10 @@
 					  pcpath);
 	set_ctm = (bool)gdev_vector_stroke_scaling(vdev, pis, &scale, &mat);
 	gdev_vector_update_clip_path(vdev, pcpath);
-	gdev_vector_prepare_stroke((gx_device_vector *)pdev, pis, params,
+	code = gdev_vector_prepare_stroke((gx_device_vector *)pdev, pis, params,
 				   pdcolor, scale);
+	if (code < 0)
+	    return code;
 	s = pdev->strm;
 	if (set_ctm) {
 	    stream_puts(s, "q");



More information about the gs-cvs mailing list