summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAlex Cherepanov <alex@coscript.biz>2021-09-02 18:55:42 -0700
committerRay Johnston <ray.johnston@artifex.com>2021-09-02 18:55:42 -0700
commit2c205c68593f63701c5ba40ec2bad07121fdf4a4 (patch)
treea696fa603d93ea296d9ab1c109520d1d640f4fb4 /lib
parent12c8f9908f35f486d346c1bb9bfc4b6489585c8f (diff)
downloadghostpdl-2c205c68593f63701c5ba40ec2bad07121fdf4a4.tar.gz
Fix Bug 703916 - Clean up the operand stack in all cases.
Thanks to Alex for this patch.
Diffstat (limited to 'lib')
-rw-r--r--lib/viewgif.ps4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/viewgif.ps b/lib/viewgif.ps
index a261bf7e6..f017688e1 100644
--- a/lib/viewgif.ps
+++ b/lib/viewgif.ps
@@ -42,7 +42,9 @@
GlobalColor
{ PaletteSize 3 mul string readstring pop
/GlobalPalette exch def
- } if
+ } {
+ pop
+ } ifelse
currentdict end
} bind def