summaryrefslogtreecommitdiff
path: root/hdlctest.c
diff options
context:
space:
mode:
authorSean Bright <sean@malleable.com>2009-01-14 19:58:03 +0000
committerSean Bright <sean@malleable.com>2009-01-14 19:58:03 +0000
commit22a3b2ca8dd3a91fdafe2ee9ae5ae089f6c7dee4 (patch)
tree52c228c9adb2141d0c3d44548673076e37c2e183 /hdlctest.c
parente4e99fcd7c65b3d1c4cd7c179f48d1dba798b040 (diff)
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
Diffstat (limited to 'hdlctest.c')
-rw-r--r--hdlctest.c6
1 files 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) {