diff options
author | Robin Watts <Robin.Watts@artifex.com> | 2023-03-02 11:10:53 +0000 |
---|---|---|
committer | Robin Watts <Robin.Watts@artifex.com> | 2023-03-02 12:40:05 +0000 |
commit | 34267e03378f33fec8cbe4acb0e6517928e37090 (patch) | |
tree | 2adfddd0bdb02391cfca64d2a2edf239ceeb6ae8 /base | |
parent | 1e934119af032608a29a8c7fbf4c16eff950ef79 (diff) | |
download | ghostpdl-34267e03378f33fec8cbe4acb0e6517928e37090.tar.gz |
Coverity 381502: Don't check non NULL pointer for NULLity.
Diffstat (limited to 'base')
-rw-r--r-- | base/gxstroke.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/base/gxstroke.c b/base/gxstroke.c index d069cb6ee..8d41d01ac 100644 --- a/base/gxstroke.c +++ b/base/gxstroke.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2001-2022 Artifex Software, Inc. +/* Copyright (C) 2001-2023 Artifex Software, Inc. All Rights Reserved. This software is provided AS-IS with no warranty, either express or @@ -354,8 +354,7 @@ gx_default_stroke_path_shading_or_pattern(gx_device * pdev, return code; /* Now we make an accumulator device that will fill that out. */ gx_cpath_accum_begin(&adev, stroke_as_clip_path.path.memory, false); - if (pdev != 0) - (*dev_proc(pdev, get_clipping_box))(pdev, &dev_clip_rect); + (*dev_proc(pdev, get_clipping_box))(pdev, &dev_clip_rect); gx_cpath_accum_set_cbox(&adev, &dev_clip_rect); set_nonclient_dev_color(&devc, 0); /* arbitrary, but not transparent */ gs_set_logical_op_inline(pgs, lop_default); |