[libss7-commits] rmudgett: trunk r292 - /trunk/isup.c

SVN commits to the libss7 project libss7-commits at lists.digium.com
Fri Sep 16 12:51:27 CDT 2011


Author: rmudgett
Date: Fri Sep 16 12:51:26 2011
New Revision: 292

URL: http://svnview.digium.com/svn/libss7?view=rev&rev=292
Log:
Fix some uninitialized values reported by valgrind.

Initialize the local isup_call structure in isup_cqr() and
isup_send_message_ciconly().

Modified:
    trunk/isup.c

Modified: trunk/isup.c
URL: http://svnview.digium.com/svn/libss7/trunk/isup.c?view=diff&rev=292&r1=291&r2=292
==============================================================================
--- trunk/isup.c (original)
+++ trunk/isup.c Fri Sep 16 12:51:26 2011
@@ -4010,7 +4010,7 @@
 
 int isup_cqr(struct ss7 *ss7, int begincic, int endcic, unsigned int dpc, unsigned char status[])
 {
-	struct isup_call call;
+	struct isup_call call = {{0},};
 	int i, res;
 
 	for (i = 0; (i + begincic) <= endcic; i++)
@@ -4477,7 +4477,8 @@
 static int isup_send_message_ciconly(struct ss7 *ss7, int messagetype, int cic, unsigned int dpc)
 {
 	int res;
-	struct isup_call c;
+	struct isup_call c = {{0},};
+
 	c.cic = cic;
 	c.dpc = dpc;
 	res = isup_send_message(ss7, &c, messagetype, empty_params);




More information about the libss7-commits mailing list