OSDN Git Service

* Fixed Bug
authorkonn <konn@1a406e8e-add9-4483-a2c8-d8cac5b7c224>
Thu, 14 Feb 2008 11:31:00 +0000 (11:31 +0000)
committerkonn <konn@1a406e8e-add9-4483-a2c8-d8cac5b7c224>
Thu, 14 Feb 2008 11:31:00 +0000 (11:31 +0000)
    - when the image of non-correspondence is converted, and aborted.

git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/modchxj/mod_chxj/branches/RELEASE_0_8_0@1849 1a406e8e-add9-4483-a2c8-d8cac5b7c224

src/chxj_img_conv_format.c
src/chxj_qr_code.c

index 6614346..104d04e 100644 (file)
@@ -38,7 +38,7 @@
     ap_log_rerror(APLOG_MARK,APLOG_DEBUG, 0, r,"%s %s %d %s\n",__FILE__,(__func__),__LINE__,description); \
     description=(char *) MagickRelinquishMemory(description); \
     DestroyMagickWand(magick_wand); \
-  }while(1
+  } while(0
 
 typedef enum img_conv_mode_t {
   IMG_CONV_MODE_NORMAL = 0,
index 107b681..d01b0f1 100644 (file)
 */
 #define EXIT_MAGICK_ERROR() \
           do { \
-             char *description; ExceptionType severity; \
+             char *description; \
+             ExceptionType severity; \
              description=MagickGetException(magick_wand,&severity); \
              ap_log_rerror(APLOG_MARK,APLOG_DEBUG, 0, r,"%s %s %d %s\n",__FILE__,(__func__),__LINE__,description); \
              description=(char *) MagickRelinquishMemory(description); \
              DestroyMagickWand(magick_wand); \
-          }while(1)
+          }while(0)
 
 /*----------------------------------------------------------------------------*/
 /* ¥â¡¼¥É»Ø¼¨»Ò¥Æ¡¼¥Ö¥ë                                                       */