Skip to content

Commit

Permalink
cosmetic
Browse files Browse the repository at this point in the history
  • Loading branch information
Cristy committed Jul 4, 2022
1 parent be46ed6 commit c4a9a8b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion MagickCore/magic.c
Expand Up @@ -304,6 +304,7 @@ MagickExport const MagicInfo *GetMagicInfo(const unsigned char *magic,
q=magic;
if (p->skip_spaces != MagickFalse)
while (isspace(*q) != 0) q++;
assert(p->offset >= 0);
offset=p->offset+(MagickOffsetType) p->length;
if ((offset <= (MagickOffsetType) length) &&
(memcmp(q+p->offset,p->magic,p->length) == 0))
Expand Down Expand Up @@ -331,9 +332,9 @@ MagickExport const MagicInfo *GetMagicInfo(const unsigned char *magic,
*q;

q=magic;
assert(p->offset >= 0);
if (p->skip_spaces != MagickFalse)
while (isspace(*q) != 0) q++;
assert(p->offset >= 0);
offset=p->offset+(MagickOffsetType) p->length;
if ((offset <= (MagickOffsetType) length) &&
(memcmp(q+p->offset,p->magic,p->length) == 0))
Expand Down

0 comments on commit c4a9a8b

Please sign in to comment.