diff options
author | Russell Bryant <russell@russellbryant.com> | 2006-01-20 19:24:42 +0000 |
---|---|---|
committer | Russell Bryant <russell@russellbryant.com> | 2006-01-20 19:24:42 +0000 |
commit | 1946020208baa6214dfab9f41d6a031366bb7877 (patch) | |
tree | 604e6ab5b89c6ad12370245015699b0e5991f6f5 /formats/format_pcm.c | |
parent | cb8bd57a216e4fd9c2212745f49390c06b783c42 (diff) |
- move ast_strdupa from channel.h to utils.h
- attempt to log an error message if the __builtin_alloca inside of ast_strdupa
fails.
- document the fact that it is known and intended behavior for ast_strdupa to
cause Asterisk to crash if the alloca fails
- use __builtin_expect when checking for allocation failure in all of the
allocation wrappers
New Janitor Project! Anywhere that we check for a successful allocation after
a call to ast_strdupa is unnecessary and should be removed.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8356 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'formats/format_pcm.c')
0 files changed, 0 insertions, 0 deletions