Commit 7466f1cae for imagemagick.org
commit 7466f1cae9b244115c2e9d24b038668e6c8288ec
Author: Cristy <urban-warrior@imagemagick.org>
Date: Sun Feb 22 22:10:20 2026 -0500
eliminate compiler warning
diff --git a/MagickCore/blob.c b/MagickCore/blob.c
index 5166fcfcd..4cac7302c 100644
--- a/MagickCore/blob.c
+++ b/MagickCore/blob.c
@@ -1626,6 +1626,7 @@ MagickExport void *FileToBlob(const char *filename,const size_t extent,
% o filename: the filename.
%
*/
+
static inline ssize_t WriteBlobStream(Image *image,const size_t length,
const void *magick_restrict data)
{
@@ -2316,8 +2317,8 @@ MagickExport void ImageToCustomStream(const ImageInfo *image_info,Image *image,
ssize_t
count;
- (void) FormatLocaleString(image->filename,MagickPathExtent,
- "%s:%s",image->magick,unique);
+ (void) FormatLocaleString(image->filename,MagickPathExtent,"%s:%s",
+ image->magick,unique);
status=WriteImage(clone_info,image,exception);
if (status != MagickFalse)
{
@@ -3373,8 +3374,8 @@ MagickExport MagickBooleanType OpenBlob(const ImageInfo *image_info,
{
flags=O_RDWR | O_CREAT | O_TRUNC | O_BINARY;
type="w+b";
- status=IsRightsAuthorized(SystemPolicyDomain,(const PolicyRights) (
- ReadPolicyRights | WritePolicyRights),"follow");
+ status=IsRightsAuthorized(SystemPolicyDomain,ReadPolicyRights,"follow") &&
+ IsRightsAuthorized(SystemPolicyDomain,WritePolicyRights,"follow");
break;
}
case AppendBlobMode:
@@ -3388,8 +3389,8 @@ MagickExport MagickBooleanType OpenBlob(const ImageInfo *image_info,
{
flags=O_RDWR | O_CREAT | O_APPEND | O_BINARY;
type="a+b";
- status=IsRightsAuthorized(SystemPolicyDomain,(const PolicyRights)
- (ReadPolicyRights | WritePolicyRights),"follow");
+ status=IsRightsAuthorized(SystemPolicyDomain,ReadPolicyRights,"follow") &&
+ IsRightsAuthorized(SystemPolicyDomain,WritePolicyRights,"follow");
break;
}
default: