Mercurial > hg > release > icedtea7-forest-2.5 > jdk
changeset 8149:e6e82c628fe4
PR2210: DGifCloseFile call should check the return value, not the error code, for failure
Summary: Avoid passing in an integer reference at all and just use the return value.
author | andrew |
---|---|
date | Thu, 05 Feb 2015 02:05:14 +0000 |
parents | 48dd8696b3cd |
children | 00844b599771 |
files | src/share/native/sun/awt/splashscreen/splashscreen_gif.c |
diffstat | 1 files changed, 1 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/share/native/sun/awt/splashscreen/splashscreen_gif.c Wed Feb 04 18:20:43 2015 +0000 +++ b/src/share/native/sun/awt/splashscreen/splashscreen_gif.c Thu Feb 05 02:05:14 2015 +0000 @@ -311,9 +311,7 @@ free(pOldBitmapBits); #if GIFLIB_MAJOR >= 5 && GIFLIB_MINOR >= 1 - int error = 0; - DGifCloseFile(gif, &error); - if (error) + if (DGifCloseFile(gif, NULL) == GIF_ERROR) return 0; #else DGifCloseFile(gif);