]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Wed, 3 Aug 2011 18:19:35 +0000 (18:19 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Wed, 3 Aug 2011 18:19:35 +0000 (18:19 +0000)
MagickCore/utility.c

index 078c06856d3a41ac6f91586d28dea3640a80160f..b369536e204b26f2486fadbf6437a8169f867eee 100644 (file)
@@ -1323,7 +1323,7 @@ MagickExport void GetPathComponent(const char *path,PathType type,
         }
     }
 #if defined(__OS2__)
-  if (path[1] != ":")
+  if (path[1] != ':')
 #endif
   for (p=component; *p != '\0'; p++)
   {
@@ -1336,8 +1336,8 @@ MagickExport void GetPathComponent(const char *path,PathType type,
         if (*p == '\0')
           break;
       }
-    if ((*p == ':') && (IsPathDirectory(path) < 0) &&
-        (IsPathAccessible(path) == MagickFalse))
+    if ((*p == ':') && (IsPathDirectory(component) < 0) &&
+        (IsPathAccessible(component) == MagickFalse))
       {
         /*
           Look for image format specification (e.g. ps3:image).