Make sure pollres is initialized to 0
authorMark Spencer <markster@digium.com>
Tue, 29 Jun 2004 01:43:55 +0000 (01:43 +0000)
committerMark Spencer <markster@digium.com>
Tue, 29 Jun 2004 01:43:55 +0000 (01:43 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3336 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_zap.c

index e8851c4..eb42be5 100755 (executable)
@@ -5320,7 +5320,7 @@ static int handle_init_event(struct zt_pvt *i, int event)
 
 static void *do_monitor(void *data)
 {
-       int count, res, res2, spoint, pollres;
+       int count, res, res2, spoint, pollres=0;
        struct zt_pvt *i;
        struct zt_pvt *last = NULL;
        time_t thispass = 0, lastpass = 0;