Skip to content

Commit df35b3f

Browse files
author
Cristy
committed
eliminate compiler warning
1 parent 3f15e69 commit df35b3f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

magick/blob.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2754,8 +2754,8 @@ MagickExport MagickBooleanType OpenBlob(const ImageInfo *image_info,
27542754
{
27552755
flags=O_RDWR | O_CREAT | O_TRUNC | O_BINARY;
27562756
type="w+b";
2757-
status=IsRightsAuthorized(SystemPolicyDomain,(const PolicyRights) (
2758-
ReadPolicyRights | WritePolicyRights),"follow");
2757+
status=IsRightsAuthorized(SystemPolicyDomain,ReadPolicyRights,"follow") &&
2758+
IsRightsAuthorized(SystemPolicyDomain,WritePolicyRights,"follow");
27592759
break;
27602760
}
27612761
case AppendBlobMode:
@@ -2769,8 +2769,8 @@ MagickExport MagickBooleanType OpenBlob(const ImageInfo *image_info,
27692769
{
27702770
flags=O_RDWR | O_CREAT | O_APPEND | O_BINARY;
27712771
type="a+b";
2772-
status=IsRightsAuthorized(SystemPolicyDomain,(const PolicyRights) (
2773-
ReadPolicyRights | WritePolicyRights),"follow");
2772+
status=IsRightsAuthorized(SystemPolicyDomain,ReadPolicyRights,"follow") &&
2773+
IsRightsAuthorized(SystemPolicyDomain,WritePolicyRights,"follow");
27742774
break;
27752775
}
27762776
default:

0 commit comments

Comments
 (0)