Commit adb2e72b6 for imagemagick.org
commit adb2e72b60e887f52441ef3cfc2454b3ae184a69
Author: Dirk Lemstra <dirk@lemstra.org>
Date: Thu Nov 12 07:31:02 2026 +0100
Cosmetic.
diff --git a/MagickCore/image.c b/MagickCore/image.c
index 1a2fcdcb3..991955e27 100644
--- a/MagickCore/image.c
+++ b/MagickCore/image.c
@@ -1826,17 +1826,17 @@ MagickExport size_t InterpretImageFilename(const ImageInfo *image_info,
}
if (*cursor == '[')
{
+ char
+ sanitized_option[MagickPathExtent];
+
const char
*end = strchr(cursor,']'),
*option = (const char *) NULL;
-
+
size_t
extent,
option_length;
- char
- sanitized_option[MagickPathExtent];
-
if (end == (const char *) NULL)
continue;
extent=(size_t) (end-cursor-1);