[libpri-commits] trunk r359 - /trunk/q931.c

libpri-commits at lists.digium.com libpri-commits at lists.digium.com
Wed Jul 12 12:04:13 MST 2006


Author: russell
Date: Wed Jul 12 14:04:12 2006
New Revision: 359

URL: http://svn.digium.com/view/libpri?rev=359&view=rev
Log:
ensure buffer gets initialized (issue #7512, klaus3000)

Modified:
    trunk/q931.c

Modified: trunk/q931.c
URL: http://svn.digium.com/view/libpri/trunk/q931.c?rev=359&r1=358&r2=359&view=diff
==============================================================================
--- trunk/q931.c (original)
+++ trunk/q931.c Wed Jul 12 14:04:12 2006
@@ -1433,7 +1433,7 @@
 {
 	int x, y;
 	char *buf = malloc(len + 1);
-	char tmp[80];
+	char tmp[80] = "";
 	if (buf) {
 		x=y=0;
 		if ((x < ie->len) && (ie->data[x] & 0x80)) {



More information about the libpri-commits mailing list