httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 51329] New: Code clean up (mod_imagemap.c)
Date Mon, 06 Jun 2011 19:26:48 GMT

             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
    Classification: Unclassified

Created attachment 27120
Proposed patch


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:
------- You are receiving this mail because: -------
You are the assignee for the bug.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message