]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authoranthony <anthony@git.imagemagick.org>
Sun, 18 Mar 2012 11:56:44 +0000 (11:56 +0000)
committeranthony <anthony@git.imagemagick.org>
Sun, 18 Mar 2012 11:56:44 +0000 (11:56 +0000)
MagickWand/magick-cli.c

index 7eef3b9ae6f0e722da87c71bd871b0c83e0c7478..cf37e856178883d3601f35807010a8e4f778a3ca 100644 (file)
@@ -180,7 +180,7 @@ WandExport void ProcessScriptOptions(MagickCLI *cli_wand,int argc,char **argv,
 
   /* open file script or stream, and set up tokenizer */
   token_info = AcquireScriptTokenInfo(argv[index]);
-  if (token_info->token == (char *) NULL) {
+  if (token_info == (ScriptTokenInfo *) NULL) {
     ThrowFileException(cli_wand->wand.exception,OptionFatalError,
                "UnableToOpenScript",argv[index]);
     return;