Skip to content

Commit

Permalink
Added extra check
Browse files Browse the repository at this point in the history
  • Loading branch information
Dirk Lemstra committed Nov 3, 2017
1 parent 04ff995 commit e8c1b09
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions MagickCore/resource.c
Original file line number Diff line number Diff line change
Expand Up @@ -381,9 +381,12 @@ MagickExport MagickBooleanType AcquireMagickResource(const ResourceType type,
break;
}
UnlockSemaphoreInfo(resource_semaphore);
(void) LogMagickEvent(ResourceEvent,GetMagickModule(),"%s: %s/%s/%s",
CommandOptionToMnemonic(MagickResourceOptions,(ssize_t) type),
resource_request,resource_current,resource_limit);
if (logging != MagickFalse)
{
(void) LogMagickEvent(ResourceEvent,GetMagickModule(),"%s: %s/%s/%s",
CommandOptionToMnemonic(MagickResourceOptions,(ssize_t) type),
resource_request,resource_current,resource_limit);
}
return(status);
}

Expand Down

0 comments on commit e8c1b09

Please sign in to comment.