https://issues.apache.org/bugzilla/show_bug.cgi?id=51329

             Bug #: 51329
           Summary: Code clean up (mod_imagemap.c)
           Product: Apache httpd-2
           Version: 2.3-HEAD
          Platform: PC
        OS/Version: Windows 2000
            Status: NEW
          Severity: trivial
          Priority: P2
         Component: mod_imap
        AssignedTo: [email protected]
        ReportedBy: [email protected]
    Classification: Unclassified


Created attachment 27120
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=27120
Proposed patch

Hi,

here is a patch that makes some small speed-up/clean-up in 'mod_imagemap.c'.


1) use apr_palloc instead of apr_pcalloc when all the fields of the allocated
structure are set afterwards.

2) avoid useless calls to 'strcasecmp' when we have already found what we are
looking for.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to