]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Fri, 12 Feb 2010 15:42:34 +0000 (15:42 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Fri, 12 Feb 2010 15:42:34 +0000 (15:42 +0000)
magick/cache.c
magick/morphology.c

index 706006d1f065d83fec4f44c0b737d45e0e09a071..4202322bf049521700ce252624be902b99ad17a1 100644 (file)
@@ -651,6 +651,7 @@ static MagickBooleanType ClosePixelCacheOnDisk(CacheInfo *cache_info)
   int
     status;
 
+  status=(-1);
   LockSemaphoreInfo(cache_info->disk_semaphore);
   if (cache_info->file != -1)
     status=close(cache_info->file);
index 55adfaea7a36062c5a255b8c1f356ab2a6c25fff..e804e584039a18bc74ae7c9aa815c735e4e523a7 100644 (file)
@@ -1192,7 +1192,10 @@ static unsigned long MorphologyApply(const Image *image, Image
       if (image->colorspace == CMYKColorspace)
         q_indexes[x] = p_indexes[r];
 
-      result.index=(MagickRealType) 0; /* stop compiler warnings */
+      result.green=(MagickRealType) 0;
+      result.blue=(MagickRealType) 0;
+      result.opacity=(MagickRealType) 0;
+      result.index=(MagickRealType) 0;
       switch (method) {
         case ConvolveMorphology:
           /* Set the user defined bias of the weighted average output
@@ -1586,6 +1589,7 @@ MagickExport Image *MorphologyImageChannel(const Image *image, const
     limit = image->columns > image->rows ? image->columns : image->rows;
 
   /* Third-level morphology methods */
+  grad_image=(Image *) NULL;
   switch( curr_method ) {
     case EdgeMorphology:
       grad_image = MorphologyImageChannel(image, channel,