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
This commit is contained in:
Russell Bryant 2008-05-13 17:14:22 +00:00
parent 8722b3b5ae
commit dcbc0aab3f
1 changed files with 2 additions and 0 deletions

View File

@ -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;