]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Wed, 9 Nov 2011 18:27:04 +0000 (18:27 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Wed, 9 Nov 2011 18:27:04 +0000 (18:27 +0000)
MagickCore/magick.c

index 94db46e62d352a105bfbe30f3722389b6b3a1e71..766441aed70dd8330c5de57c770f89a0a47aba04 100644 (file)
@@ -1281,7 +1281,7 @@ MagickExport void MagickCoreGenesis(const char *path,
     Set client name and execution path.
   */
   (void) GetExecutionPath(execution_path,MaxTextExtent);
-  if ((path != (const char *) NULL) && (*path != '\0') &&
+  if ((path != (const char *) NULL) && (*path == *DirectorySeparator) &&
       (IsPathAccessible(path) != MagickFalse))
     (void) CopyMagickString(execution_path,path,MaxTextExtent);
   GetPathComponent(execution_path,TailPath,filename);