Skip to content

Commit

Permalink
optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
Cristy committed Mar 13, 2023
1 parent 15c5b01 commit ee78ae5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions magick/geometry.c
Original file line number Diff line number Diff line change
Expand Up @@ -487,13 +487,11 @@ MagickExport char *GetPageGeometry(const char *page_geometry)
if (IsEventLogging() != MagickFalse)
(void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",page_geometry);
(void) CopyMagickString(page,page_geometry,MaxTextExtent);
for (i=0; i < (ssize_t) (sizeof(Pagesizes)/sizeof(Pagesizes[0])); i++)
for (i=0; *Pagesizes[i].name != '\0'; i++)
{
int
status;

if (Pagesizes[i].extent == 0)
break; /* sentinel */
status=LocaleNCompare(Pagesizes[i].name,page_geometry,Pagesizes[i].extent);
if (status == 0)
{
Expand Down

0 comments on commit ee78ae5

Please sign in to comment.