From 22a3b2ca8dd3a91fdafe2ee9ae5ae089f6c7dee4 Mon Sep 17 00:00:00 2001 From: Sean Bright Date: Wed, 14 Jan 2009 19:58:03 +0000 Subject: Fix some uninitialized variable warnings that were causing hdlctest to not compile. Tested the program as well and it appears to work correctly. (closes issue #13906) Reported by: tzafrir git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@5659 a0bf4364-ded3-4de4-8d8a-66a801d63aff --- hdlctest.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hdlctest.c b/hdlctest.c index a0adc0e..dea165f 100644 --- a/hdlctest.c +++ b/hdlctest.c @@ -173,9 +173,9 @@ int main(int argc, char *argv[]) unsigned int olddata1; int oldones1; int oldbits1; - unsigned int olddata; - int oldones; - int oldbits; + unsigned int olddata = 0; + int oldones = 0; + int oldbits = 0; int hdlcmode = 0; struct fasthdlc_state fs; if (argc < 2) { -- cgit v1.2.3