summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorRobin Watts <Robin.Watts@artifex.com>2022-02-17 12:03:20 +0000
committerRobin Watts <Robin.Watts@artifex.com>2022-02-17 12:03:20 +0000
commit16877ea595b51a7d1453b3dfdd385cb5143cc8da (patch)
treefc6bdc614ec25ef3c419f0479240990ca2d7f538 /contrib
parent7e872d4fbc936c2dd98871fbb19245153dbb54af (diff)
downloadghostpdl-16877ea595b51a7d1453b3dfdd385cb5143cc8da.tar.gz
Coverity 375426: Avoid using 'paper' without initing it.
Diffstat (limited to 'contrib')
-rw-r--r--contrib/lips4/gdevl4v.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/contrib/lips4/gdevl4v.c b/contrib/lips4/gdevl4v.c
index 05cfb2fd8..bd9917948 100644
--- a/contrib/lips4/gdevl4v.c
+++ b/contrib/lips4/gdevl4v.c
@@ -755,7 +755,7 @@ lips4v_beginpage(gx_device_vector * vdev)
}
} else if (paper_size == USER_SIZE) {
if (pdev->prev_paper_width != width ||
- pdev->prev_paper_height != height)
+ pdev->prev_paper_height != height) {
/* modified by shige 06/27 2003
gs_snprintf(paper, sizeof(paper), "%c80;%d;%dp", LIPS_CSI, width * 10, height * 10); */
/* modified by shige 11/09 2003
@@ -765,10 +765,11 @@ lips4v_beginpage(gx_device_vector * vdev)
LIPS_HEIGHT_MAX_720 : (height * 10),
(width * 10 > LIPS_WIDTH_MAX_720)?
LIPS_WIDTH_MAX_720 : (width * 10));
- lputs(s, paper);
+ lputs(s, paper);
+ }
} else if (paper_size == USER_SIZE + LANDSCAPE) {
if (pdev->prev_paper_width != width ||
- pdev->prev_paper_height != height)
+ pdev->prev_paper_height != height) {
/* modified by shige 06/27 2003
gs_snprintf(paper, sizeof(paper), "%c81;%d;%dp", LIPS_CSI, height * 10, width * 10); */
/* modified by shige 11/09 2003
@@ -778,7 +779,8 @@ lips4v_beginpage(gx_device_vector * vdev)
LIPS_HEIGHT_MAX_720 : (width * 10),
(height * 10 > LIPS_WIDTH_MAX_720)?
LIPS_WIDTH_MAX_720 : (height * 10));
- lputs(s, paper);
+ lputs(s, paper);
+ }
}
pdev->prev_paper_size = paper_size;
pdev->prev_paper_width = width;