From 7ba1b0435bb7cc53fc62160d0535186141b5805c Mon Sep 17 00:00:00 2001 From: cristy Date: Sat, 5 Feb 2011 19:07:50 +0000 Subject: [PATCH] --- magick/nt-base.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/magick/nt-base.c b/magick/nt-base.c index a8a53071a..166fc6f04 100644 --- a/magick/nt-base.c +++ b/magick/nt-base.c @@ -946,7 +946,6 @@ static int NTLocateGhostscript(const char **product_family,int *major_version, } if (status == FALSE) { - i=0; *major_version=0; *minor_version=0; } @@ -1091,7 +1090,7 @@ MagickExport int NTGhostscriptEXE(char *path,int length) (NTGhostscriptGetString("GS_DLL",program,sizeof(program)) == FALSE)) return(FALSE); p=strrchr(program,'\\'); - if (p == (char *) NULL) + if (p != (char *) NULL) { p++; *p='\0'; -- 2.40.0