]> granicus.if.org Git - imagemagick/commitdiff
...
authorCristy <urban-warrior@imagemagick.org>
Mon, 13 Mar 2017 14:45:24 +0000 (10:45 -0400)
committerCristy <urban-warrior@imagemagick.org>
Mon, 13 Mar 2017 14:45:24 +0000 (10:45 -0400)
MagickCore/property.c

index 6113530c51768a2f40dc32dbdf2cee3674f1bc58..b201382cd9dab7a99b639287faef64559927001f 100644 (file)
@@ -1767,7 +1767,7 @@ static MagickBooleanType GetXMPProperty(const Image *image,const char *property)
       while (description != (XMLTreeInfo *) NULL)
       {
         char
-          *xml_namespace;
+          *xmp_namespace;
 
         node=GetXMLTreeChild(description,(const char *) NULL);
         while (node != (XMLTreeInfo *) NULL)
@@ -1777,20 +1777,20 @@ static MagickBooleanType GetXMPProperty(const Image *image,const char *property)
           if ((child == (XMLTreeInfo *) NULL) &&
               (SkipXMPValue(content) == MagickFalse))
             {
-              xml_namespace=ConstantString(GetXMLTreeTag(node));
-              (void) SubstituteString(&xml_namespace,"exif:","xmp:");
+              xmp_namespace=ConstantString(GetXMLTreeTag(node));
+              (void) SubstituteString(&xmp_namespace,"exif:","xmp:");
               (void) AddValueToSplayTree((SplayTreeInfo *) image->properties,
-                xml_namespace,ConstantString(content));
+                xmp_namespace,ConstantString(content));
             }
           while (child != (XMLTreeInfo *) NULL)
           {
             content=GetXMLTreeContent(child);
             if (SkipXMPValue(content) == MagickFalse)
               {
-                xml_namespace=ConstantString(GetXMLTreeTag(node));
-                (void) SubstituteString(&xml_namespace,"exif:","xmp:");
+                xmp_namespace=ConstantString(GetXMLTreeTag(node));
+                (void) SubstituteString(&xmp_namespace,"exif:","xmp:");
                 (void) AddValueToSplayTree((SplayTreeInfo *) image->properties,
-                  xml_namespace,ConstantString(content));
+                  xmp_namespace,ConstantString(content));
               }
             child=GetXMLTreeSibling(child);
           }