]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Ensure that the chanspy datastore is fully initialized.
authorRussell Bryant <russell@russellbryant.com>
Fri, 19 Dec 2008 15:03:02 +0000 (15:03 +0000)
committerRussell Bryant <russell@russellbryant.com>
Fri, 19 Dec 2008 15:03:02 +0000 (15:03 +0000)
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: https://origsvn.digium.com/svn/asterisk/branches/1.4@165889 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_chanspy.c

index 1ac8ef58378419d33c76f6df42ef41d87d6b700d..18e4972a5e1a5d72e31679a7b8784348a225178c 100644 (file)
@@ -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);