[Home]

Summary:ASTERISK-07771: [patch] Constification of the return value of a config function which ought not be modified
Reporter:Tilghman Lesher (tilghman)Labels:
Date Opened:2006-09-19 13:02:31Date Closed:2006-09-20 15:41:21
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Core/Configuration
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) 20060919__constification.diff.txt
Description:The return value of pbx_retrieve_variable() points to a config structure value which should not be mangled by any function retrieving its value.  Therefore, the function should have the modifier "const" on its return value.

Note that this turned up 2 bugs in app_voicemail (already fixed) and an additional bug in chan_zap (fixed in this patch).
Comments:By: Tilghman Lesher (tilghman) 2006-09-20 15:41:21

Committed to trunk.