Fixed various warnings reported by Visual Studio 2015 and did some minor refactoring.
diff --git a/MagickCore/coder.c b/MagickCore/coder.c
index 8a09bc8..32a15ff 100644
--- a/MagickCore/coder.c
+++ b/MagickCore/coder.c
@@ -875,7 +875,7 @@
{
char
path[MagickPathExtent],
- *fileXml;
+ *file_xml;
GetPathComponent(filename,HeadPath,path);
if (*path != '\0')
@@ -885,12 +885,12 @@
(void) CopyMagickString(path,token,MagickPathExtent);
else
(void) ConcatenateMagickString(path,token,MagickPathExtent);
- fileXml=FileToXML(path,~0UL);
- if (fileXml != (char *) NULL)
+ file_xml=FileToXML(path,~0UL);
+ if (file_xml != (char *) NULL)
{
- status&=LoadCoderCache(coder_cache,fileXml,path,depth+1,
+ status&=LoadCoderCache(coder_cache,file_xml,path,depth+1,
exception);
- fileXml=(char *) RelinquishMagickMemory(fileXml);
+ file_xml=DestroyString(file_xml);
}
}
}