diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-12-19 15:03:02 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-12-19 15:03:02 +0000 |
commit | a78774210ab8a62f2f675688748a02a227f67aef (patch) | |
tree | fff58b1a78d4923b616334005fe54d44306a98d1 | |
parent | bc48debd4dfbc47b379b6d4795df45e30d18b1bc (diff) |
Ensure that the chanspy datastore is fully initialized.
This patch resolved some random crash issues observed by a user on a BSD system
(closes issue #14111)
Reported by: ys
Patches:
app_chanspy.c.diff uploaded by ys (license 281)
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@165889 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r-- | apps/app_chanspy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/app_chanspy.c b/apps/app_chanspy.c index 1ac8ef583..18e4972a5 100644 --- a/apps/app_chanspy.c +++ b/apps/app_chanspy.c @@ -513,7 +513,7 @@ static int common_exec(struct ast_channel *chan, const struct ast_flags *flags, char *ptr; int num; int num_spyed_upon = 1; - struct chanspy_ds chanspy_ds; + struct chanspy_ds chanspy_ds = { 0, }; ast_mutex_init(&chanspy_ds.lock); |