[asterisk-dev] [asterisk-commits] kpfleming: branch 1.6.1 r153710 - in /branches/1.6.1: ./ agi/ apps/ channels/...
Eliel Sardañons
eliel at eliel.net
Fri Nov 7 08:00:49 CST 2008
I think it is not needed to print this log messages, the idea is to print
this kind of allocation failure if DEBUG_MALLOC is enabled, and if so, we
are already doing it in __ast_alloc_region()
On Sun, Nov 2, 2008 at 9:56 PM, SVN commits to the Asterisk project <
asterisk-commits at lists.digium.com> wrote:
> Author: kpfleming
> Date: Sun Nov 2 17:56:13 2008
> New Revision: 153710
>
> URL: http://svn.digium.com/view/asterisk?view=rev&rev=153710
> Log:
> import gcc 4.3.2 warning fixes from trunk, with a few changes specific to
> this branch
>
> @@ -11601,7 +11607,9 @@
>
> for (which = span = 0; span < NUM_SPANS; span++) {
> if (pris[span].pri && ++which > state) {
> - asprintf(&ret, "%d", span + 1); /* user indexes
> start from 1 */
> + if (asprintf(&ret, "%d", span + 1) < 0) { /*
> user indexes start from 1 */
> + ast_log(LOG_WARNING, "asprintf() failed:
> %s\n", strerror(errno));
> + }
> break;
> }
> }
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-dev/attachments/20081107/7e5ef0ee/attachment-0001.htm
More information about the asterisk-dev
mailing list