diff options
author | Russell Bryant <russell@russellbryant.com> | 2008-05-13 17:14:22 +0000 |
---|---|---|
committer | Russell Bryant <russell@russellbryant.com> | 2008-05-13 17:14:22 +0000 |
commit | dcbc0aab3f0ab632ac090729ec68550196298fa0 (patch) | |
tree | 423d19277f1dd7631e8e33be7dfd48f71dea08f6 /res/res_smdi.c | |
parent | 8722b3b5ae0676bdca95823205878d95aabc1cf4 (diff) |
Initialize the start time in smdi_msg_wait. Somehow this code got lost in trunk.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@115847 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'res/res_smdi.c')
-rw-r--r-- | res/res_smdi.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/res/res_smdi.c b/res/res_smdi.c index aa86b188d..97b58b5db 100644 --- a/res/res_smdi.c +++ b/res/res_smdi.c @@ -420,6 +420,8 @@ static void *smdi_message_wait(struct ast_smdi_interface *iface, int timeout, long diff = 0; void *msg; + start = ast_tvnow(); + while (diff < timeout) { struct timespec ts = { 0, }; struct timeval tv; |