summaryrefslogtreecommitdiff
path: root/gdk-pixbuf/io-tga.c
diff options
context:
space:
mode:
authorMatthias Clasen <maclas@gmx.de>2003-09-19 19:20:09 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2003-09-19 19:20:09 +0000
commitc0d62354d3ad10d397deb2e193862e9ada7e3445 (patch)
treedbc530eaccb0d5e547066570223af41c5e566bbe /gdk-pixbuf/io-tga.c
parentfc3f1ef30c58aa6da31b63d27ed34786212aaa14 (diff)
downloadgdk-pixbuf-c0d62354d3ad10d397deb2e193862e9ada7e3445.tar.gz
Remove a pointless check. (#122710, Kjartan Maraas)
2003-09-19 Matthias Clasen <maclas@gmx.de> * io-tga.c (try_preload): Remove a pointless check. (#122710, Kjartan Maraas)
Diffstat (limited to 'gdk-pixbuf/io-tga.c')
-rw-r--r--gdk-pixbuf/io-tga.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/gdk-pixbuf/io-tga.c b/gdk-pixbuf/io-tga.c
index 392d9663a..1486d4480 100644
--- a/gdk-pixbuf/io-tga.c
+++ b/gdk-pixbuf/io-tga.c
@@ -760,12 +760,6 @@ static gboolean try_preload(TGAContext *ctx, GError **err)
_("TGA image has invalid dimensions"));
return FALSE;
}
- if (ctx->hdr->infolen > 255) {
- g_set_error(err, GDK_PIXBUF_ERROR,
- GDK_PIXBUF_ERROR_CORRUPT_IMAGE,
- _("TGA image comment length is too long"));
- return FALSE;
- }
if ((ctx->hdr->flags & TGA_INTERLEAVE_MASK) != TGA_INTERLEAVE_NONE) {
g_set_error(err, GDK_PIXBUF_ERROR,
GDK_PIXBUF_ERROR_UNKNOWN_TYPE,