mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-02 11:58:40 +00:00
Make sure other drivers also zero delivery (thanks to steven davies)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3295 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -190,6 +190,8 @@ static struct ast_frame *aopen_handle_escape(struct ast_modem_pvt *p, char esc)
|
||||
p->fr.samples = 0;
|
||||
p->fr.offset = 0;
|
||||
p->fr.mallocd = 0;
|
||||
p->fr.delivery.tv_sec = 0;
|
||||
p->fr.delivery.tv_usec = 0;
|
||||
if (esc)
|
||||
ast_log(LOG_DEBUG, "Escaped character '%c'\n", esc);
|
||||
|
||||
@@ -319,6 +321,8 @@ static struct ast_frame *aopen_read(struct ast_modem_pvt *p)
|
||||
p->fr.data = p->obuf;
|
||||
p->fr.datalen = p->obuflen;
|
||||
p->fr.mallocd = 0;
|
||||
p->fr.delivery.tv_sec = 0;
|
||||
p->fr.delivery.tv_usec = 0;
|
||||
p->fr.offset = AST_FRIENDLY_OFFSET;
|
||||
p->fr.src = __FUNCTION__;
|
||||
if (option_debug)
|
||||
|
||||
Reference in New Issue
Block a user