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)
This commit is contained in:
Matthias Clasen
2003-09-19 19:20:09 +00:00
committed by Matthias Clasen
parent fc3f1ef30c
commit c0d62354d3
2 changed files with 5 additions and 6 deletions

View File

@ -1,3 +1,8 @@
2003-09-19 Matthias Clasen <maclas@gmx.de>
* io-tga.c (try_preload): Remove a pointless check.
(#122710, Kjartan Maraas)
Mon Aug 18 10:25:29 2003 Owen Taylor <otaylor@redhat.com>
* gdk-pixdata.c (gdk_pixdata_to_csource): Add the correct

View File

@ -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,