Skip to content

Commit

Permalink
Silenced warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
dlemstra committed Dec 25, 2021
1 parent 966d7ca commit 29bb2fb
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions MagickCore/draw.c
Original file line number Diff line number Diff line change
Expand Up @@ -5534,17 +5534,18 @@ MagickExport MagickBooleanType DrawPrimitive(Image *image,
if (*primitive_info->text != '\0')
{
MagickBooleanType
status;
path_status;

struct stat
attributes;

(void) CopyMagickString(clone_info->filename,primitive_info->text,
MagickPathExtent);
status=GetPathAttributes(clone_info->filename,&attributes);
if ((status != MagickFalse) && (S_ISCHR(attributes.st_mode) == 0))
path_status=GetPathAttributes(clone_info->filename,&attributes);
if ((path_status != MagickFalse) &&
(S_ISCHR(attributes.st_mode) == 0))
{
status&=SetImageInfo(clone_info,1,exception);
(void) SetImageInfo(clone_info,1,exception);
(void) CopyMagickString(clone_info->filename,
primitive_info->text,MagickPathExtent);
if (clone_info->size != (char *) NULL)
Expand Down

0 comments on commit 29bb2fb

Please sign in to comment.