changeset 29728:f0f1e1365670

fix jpeg error-handling setup
author Ken Raeburn <raeburn@raeburn.org>
date Mon, 19 Jun 2000 07:21:13 +0000
parents a1a4b7597a40
children bf15c290522e
files src/ChangeLog src/xfns.c
diffstat 2 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
Binary file src/ChangeLog has changed
--- a/src/xfns.c	Mon Jun 19 07:16:27 2000 +0000
+++ b/src/xfns.c	Mon Jun 19 07:21:13 2000 +0000
@@ -8211,8 +8211,8 @@
 
   /* Customize libjpeg's error handling to call my_error_exit when an
      error is detected.  This function will perform a longjmp.  */
+  cinfo.err = jpeg_std_error (&mgr.pub);
   mgr.pub.error_exit = my_error_exit;
-  cinfo.err = jpeg_std_error (&mgr.pub);
   
   if ((rc = setjmp (mgr.setjmp_buffer)) != 0)
     {