Ticket #2158 (closed defect: fixed)
Use correct return values in changes related to RFC-24
| Reported by: | dmorissette | Owned by: | dmorissette |
|---|---|---|---|
| Priority: | normal | Milestone: | 5.0 release |
| Component: | MapServer C Library | Version: | 5.0 |
| Severity: | normal | Keywords: | |
| Cc: | umberto, warmerdam |
Description
I noticed that many of the changes to dynamically allocate objects in r6308 and r6318 (RFC-24 related) do not use the correct return value when the allocation of objects fails.
This is because in MapServer some functions return MS_SUCCESS/MS_FAILURE and others return 0 for success and -1 for failure, but MS_FAILURE != -1 ... so it is not correct to return MS_FAILURE in a function that is expected to return -1 on error.
We need to walk through all the changes and fix that.
Change History
Note: See
TracTickets for help on using
tickets.
