]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Sat, 5 Feb 2011 19:07:50 +0000 (19:07 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Sat, 5 Feb 2011 19:07:50 +0000 (19:07 +0000)
magick/nt-base.c

index a8a53071a6357bdd1ebd294b738873a98e07a99d..166fc6f04b94b1be35a3d641bd4ed3b12cab9eab 100644 (file)
@@ -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';