[Asterisk-cvs] asterisk tdd.c,1.1,1.2
citats at lists.digium.com
citats at lists.digium.com
Sat Oct 23 02:24:20 CDT 2004
Update of /usr/cvsroot/asterisk
In directory mongoose.digium.com:/tmp/cvs-serv30509
Modified Files:
tdd.c
Log Message:
Make sure malloc worked before accessing the mem in tdd.c
Index: tdd.c
===================================================================
RCS file: /usr/cvsroot/asterisk/tdd.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- tdd.c 7 Dec 2001 22:57:34 -0000 1.1
+++ tdd.c 23 Oct 2004 06:28:19 -0000 1.2
@@ -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