From: cristy Date: Wed, 9 Nov 2011 18:27:04 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~6665 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=695e8c38ba38d1571c7ccbde60ba6e889628015e;p=imagemagick --- 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);