[svn-commits] seanbright: tools/trunk r5659 - /tools/trunk/hdlctest.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Wed Jan 14 13:58:03 CST 2009


Author: seanbright
Date: Wed Jan 14 13:58:03 2009
New Revision: 5659

URL: http://svn.digium.com/svn-view/dahdi?view=rev&rev=5659
Log:
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

Modified:
    tools/trunk/hdlctest.c

Modified: tools/trunk/hdlctest.c
URL: http://svn.digium.com/svn-view/dahdi/tools/trunk/hdlctest.c?view=diff&rev=5659&r1=5658&r2=5659
==============================================================================
--- tools/trunk/hdlctest.c (original)
+++ tools/trunk/hdlctest.c Wed Jan 14 13:58:03 2009
@@ -173,9 +173,9 @@
 	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) {




More information about the svn-commits mailing list