summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKen Sharp <ken.sharp@artifex.com>2013-06-05 08:17:22 +0100
committerKen Sharp <ken.sharp@artifex.com>2013-06-05 08:18:07 +0100
commit0de588b3705131067078d9cac84d5bc6ff0a77e9 (patch)
treee01568b7ed6ac89ea3668e90e3b8e4ba1b437832
parent1271b370117a9622fc255df665c007487e16296f (diff)
downloadghostpdl-0de588b3705131067078d9cac84d5bc6ff0a77e9.tar.gz
pdfwrite - squelch a couple of minor compiler warnings
No differences expected
-rw-r--r--gs/devices/vector/gdevpdfg.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gs/devices/vector/gdevpdfg.c b/gs/devices/vector/gdevpdfg.c
index eddb6dc74..165cf25d7 100644
--- a/gs/devices/vector/gdevpdfg.c
+++ b/gs/devices/vector/gdevpdfg.c
@@ -621,7 +621,6 @@ static int convert_DeviceN_alternate(gx_device_pdf * pdev, const gs_imager_state
pcs2 = pcs2->base_space;
csi2 = gs_color_space_get_index(pcs2);
} while(csi2 != gs_color_space_index_ICC && pcs2->base_space);
- csi2 = gs_color_space_get_index(pcs2);
rendering_params.black_point_comp = pis->blackptcomp;
rendering_params.graphics_type_tag = pdev->graphics_type_tag;
@@ -709,6 +708,10 @@ static int convert_DeviceN_alternate(gx_device_pdf * pdev, const gs_imager_state
}
COS_OBJECT_VALUE(&v, psna);
code = cos_array_add(pca, &v);
+ if (code <0) {
+ COS_FREE(pca, "convert DeviceN");
+ return_error(gs_error_VMerror);
+ }
if (pcs->params.device_n.colorants != NULL) {
cos_dict_t *colorants = cos_dict_alloc(pdev, "pdf_color_space(DeviceN)");
@@ -869,7 +872,6 @@ static int convert_separation_alternate(gx_device_pdf * pdev, const gs_imager_st
pcs2 = pcs2->base_space;
csi2 = gs_color_space_get_index(pcs2);
} while(csi2 != gs_color_space_index_ICC && pcs2->base_space);
- csi2 = gs_color_space_get_index(pcs2);
memset(&cc.paint.values, 0x00, GS_CLIENT_COLOR_MAX_COMPONENTS);
cc.paint.values[0] = 0;