< prev index next >

src/java.desktop/share/native/libsplashscreen/splashscreen_jpeg.c

Print this page

        

@@ -235,17 +235,18 @@
 
 int
 SplashDecodeJpegStream(Splash * splash, SplashStream * stream)
 {
     struct jpeg_decompress_struct cinfo;
-    int success = 0;
+    int success;
     struct my_error_mgr jerr;
 
     cinfo.err = jpeg_std_error(&jerr.pub);
     jerr.pub.error_exit = my_error_exit;
 
     if (setjmp(jerr.setjmp_buffer)) {
+        success = 0;
         goto done;
     }
     jpeg_create_decompress(&cinfo);
     set_stream_src(&cinfo, stream);
     success = SplashDecodeJpeg(splash, &cinfo);
< prev index next >