diff options
author | Robin Watts <Robin.Watts@artifex.com> | 2022-02-17 12:05:47 +0000 |
---|---|---|
committer | Robin Watts <Robin.Watts@artifex.com> | 2022-02-17 12:05:47 +0000 |
commit | 34f8af00bd78d2c0077d61f3ad8a29b4e2a2c95c (patch) | |
tree | 628e4dbfac6ad2e2e59fe551b1aefb669471f860 /contrib | |
parent | 16877ea595b51a7d1453b3dfdd385cb5143cc8da (diff) | |
download | ghostpdl-34f8af00bd78d2c0077d61f3ad8a29b4e2a2c95c.tar.gz |
Coverity 375625: Avoid using uninit variable paper_command.
Pick a default paper size so Coverity can see that we never reach
the use of paper_command without having set it.
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/japanese/gdevnpdl.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/contrib/japanese/gdevnpdl.c b/contrib/japanese/gdevnpdl.c index 00a3a7fdf..60065bacf 100644 --- a/contrib/japanese/gdevnpdl.c +++ b/contrib/japanese/gdevnpdl.c @@ -605,6 +605,7 @@ npdl_print_page_copies(gx_device_printer * pdev, gp_file * prn_stream, int num_c case PAPER_SIZE_A5: gs_snprintf(paper_command, sizeof(paper_command), "A5"); break; + default: case PAPER_SIZE_A4: gs_snprintf(paper_command, sizeof(paper_command), "A4"); break; |