diff options
author | Kevin P. Fleming <kpfleming@digium.com> | 2008-11-02 18:52:13 +0000 |
---|---|---|
committer | Kevin P. Fleming <kpfleming@digium.com> | 2008-11-02 18:52:13 +0000 |
commit | bd4eb070f3b292617be20bda069cac47df2f7495 (patch) | |
tree | a3750d996d41e35c5df34c29533dd7d9fdcaff24 /res/res_agi.c | |
parent | 1e6864dd9d894db29ebc350b015e9eb58226a021 (diff) |
bring over all the fixes for the warnings found by gcc 4.3.x from the 1.4 branch, and add the ones needed for all the new code here too
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@153616 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'res/res_agi.c')
-rw-r--r-- | res/res_agi.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/res/res_agi.c b/res/res_agi.c index d2a215950..eba9ddb9c 100644 --- a/res/res_agi.c +++ b/res/res_agi.c @@ -2642,7 +2642,8 @@ static enum agi_result run_agi(struct ast_channel *chan, char *request, AGI *agi /* If it's voice, write it to the audio pipe */ if ((agi->audio > -1) && (f->frametype == AST_FRAME_VOICE)) { /* Write, ignoring errors */ - write(agi->audio, f->data.ptr, f->datalen); + if (write(agi->audio, f->data.ptr, f->datalen) < 0) { + } } ast_frfree(f); } |