diff options
author | Ken Sharp <ken.sharp@artifex.com> | 2017-09-06 19:08:24 +0100 |
---|---|---|
committer | Ken Sharp <ken.sharp@artifex.com> | 2017-09-06 19:08:24 +0100 |
commit | 6b085aa479bcf0c8cb426c0b51fe7f98faba72ff (patch) | |
tree | e711ab5db65427ed50a5c233019702f872b1793d /base/gxfill.c | |
parent | 754e99239371ec4aa06a9728ae65028ac22c440c (diff) | |
download | ghostpdl-6b085aa479bcf0c8cb426c0b51fe7f98faba72ff.tar.gz |
Coverity ID 94886
Remove a NULL pointer check, there's no possible way the pointer
can be NULL at this point. Or if there is, its because a NULL
pointer was passed in as an argument, and we will seg fault earlier
in this function anyway, so no point in checking it here.
Diffstat (limited to 'base/gxfill.c')
-rw-r--r-- | base/gxfill.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/base/gxfill.c b/base/gxfill.c index 4d02fdea3..f98779909 100644 --- a/base/gxfill.c +++ b/base/gxfill.c @@ -1320,8 +1320,7 @@ insert_x_new(active_line * alp, line_list *ll) alp->prev = prev; if (next != 0) next->prev = alp; - if (prev) - prev->next = alp; + prev->next = alp; } /* Insert a newly active line in the h list. */ |