diff -Naur imlib2-1.4.5/src/modules/loaders/loader_gif.c imlib2-1.4.5-magellan/src/modules/loaders/loader_gif.c --- imlib2-1.4.5/src/modules/loaders/loader_gif.c 2011-04-16 00:05:28.000000000 +0200 +++ imlib2-1.4.5-magellan/src/modules/loaders/loader_gif.c 2012-08-15 20:47:39.471981143 +0200 @@ -20,6 +20,7 @@ int intjump[] = { 8, 8, 4, 2 }; int transp; int fd; + int ErrorCode; done = 0; rows = NULL; @@ -36,7 +37,7 @@ #endif if (fd < 0) return 0; - gif = DGifOpenFileHandle(fd); + gif = DGifOpenFileHandle(fd, &ErrorCode); if (!gif) { close(fd);