summaryrefslogtreecommitdiff
path: root/ext/gd/libgd/gd_gif_in.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/gd/libgd/gd_gif_in.c')
-rw-r--r--ext/gd/libgd/gd_gif_in.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/gd/libgd/gd_gif_in.c b/ext/gd/libgd/gd_gif_in.c
index f41ec8460a..74b7493331 100644
--- a/ext/gd/libgd/gd_gif_in.c
+++ b/ext/gd/libgd/gd_gif_in.c
@@ -232,11 +232,11 @@ gdImagePtr gdImageCreateFromGifCtx(gdIOCtxPtr fd) /* {{{ */
}
im->interlace = BitSet(buf[8], INTERLACE);
if (!useGlobalColormap) {
- if (ReadColorMap(fd, bitPixel, localColorMap)) {
+ if (ReadColorMap(fd, bitPixel, localColorMap)) {
gdImageDestroy(im);
return 0;
}
- ReadImage(im, fd, width, height, localColorMap,
+ ReadImage(im, fd, width, height, localColorMap,
BitSet(buf[8], INTERLACE), &ZeroDataBlock);
} else {
if (!haveGlobalColormap) {
@@ -244,7 +244,7 @@ gdImagePtr gdImageCreateFromGifCtx(gdIOCtxPtr fd) /* {{{ */
return 0;
}
ReadImage(im, fd, width, height,
- ColorMap,
+ ColorMap,
BitSet(buf[8], INTERLACE), &ZeroDataBlock);
}
if (Transparent != (-1)) {
@@ -567,7 +567,7 @@ ReadImage(gdImagePtr im, gdIOCtx *fd, int len, int height, unsigned char (*cmap)
}
if (c > MAX_LWZ_BITS) {
- return;
+ return;
}
/* Stash the color map into the image */