[Asterisk-cvs] asterisk tdd.c,1.1,1.1.4.1

citats at lists.digium.com citats at lists.digium.com
Mon Oct 25 13:53:53 CDT 2004


Update of /usr/cvsroot/asterisk
In directory mongoose.digium.com:/tmp/cvs-serv27408

Modified Files:
      Tag: v1-0
	tdd.c 
Log Message:
Backport recent memory fixes to 1.0

Index: tdd.c
===================================================================
RCS file: /usr/cvsroot/asterisk/tdd.c,v
retrieving revision 1.1
retrieving revision 1.1.4.1
diff -u -d -r1.1 -r1.1.4.1
--- tdd.c	7 Dec 2001 22:57:34 -0000	1.1
+++ tdd.c	25 Oct 2004 17:57:25 -0000	1.1.4.1
@@ -77,8 +77,8 @@
 {
 	struct tdd_state *tdd;
 	tdd = malloc(sizeof(struct tdd_state));
-	memset(tdd, 0, sizeof(struct tdd_state));
 	if (tdd) {
+		memset(tdd, 0, sizeof(struct tdd_state));
 		tdd->fskd.spb = 176;		/* 45.5 baud */
 		tdd->fskd.hdlc = 0;		/* Async */
 		tdd->fskd.nbit = 5;		/* 5 bits */




More information about the svn-commits mailing list