[Asterisk-cvs] asterisk chanvars.c,1.9,1.10
kpfleming
kpfleming
Thu Sep 1 18:07:58 CDT 2005
Update of /usr/cvsroot/asterisk
In directory mongoose.digium.com:/tmp/cvs-serv6460
Modified Files:
chanvars.c
Log Message:
ensure variable structure is initialized before use (issue #5092)
Index: chanvars.c
===================================================================
RCS file: /usr/cvsroot/asterisk/chanvars.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- chanvars.c 6 Jun 2005 22:12:18 -0000 1.9
+++ chanvars.c 1 Sep 2005 22:08:58 -0000 1.10
@@ -40,6 +40,7 @@
return NULL;
}
+ memset(var, 0, len);
i = strlen(name);
strncpy(var->name, name, i);
var->name[i] = '\0';
More information about the svn-commits
mailing list