From 4216934121b63e76a98375939fac43dab325483a Mon Sep 17 00:00:00 2001 From: Luigi Rizzo Date: Thu, 8 Nov 2007 09:15:05 +0000 Subject: initialize a variable to silence compiler. The type of warnings emitted depends on the optimization level, at the lower levels the compiler doesn't always understand what the programmer has in mind. In this case I could not understand it either. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@89108 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- channels/chan_unistim.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/channels/chan_unistim.c b/channels/chan_unistim.c index 822561380..9909dea79 100644 --- a/channels/chan_unistim.c +++ b/channels/chan_unistim.c @@ -935,7 +935,7 @@ static void send_end_call(struct unistimsession *pte) static void set_ping_timer(struct unistimsession *pte) { - unsigned int tick; + unsigned int tick = 0; /* XXX what is this for, anyways */ pte->timeout = pte->tick_next_ping; DEBUG_TIMER("tick = %u next ping at %u tick\n", tick, pte->timeout); -- cgit v1.2.3