From 695e8c38ba38d1571c7ccbde60ba6e889628015e Mon Sep 17 00:00:00 2001 From: cristy Date: Wed, 9 Nov 2011 18:27:04 +0000 Subject: [PATCH] --- MagickCore/magick.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MagickCore/magick.c b/MagickCore/magick.c index 94db46e62..766441aed 100644 --- a/MagickCore/magick.c +++ b/MagickCore/magick.c @@ -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); -- 2.40.0