aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_jack.c
diff options
context:
space:
mode:
authorseanbright <seanbright@f38db490-d61c-443f-a65b-d21fe96a405b>2010-01-15 18:21:50 +0000
committerseanbright <seanbright@f38db490-d61c-443f-a65b-d21fe96a405b>2010-01-15 18:21:50 +0000
commitadc69e041d2b415b3422672fb262423808dfa8ab (patch)
treeede1629dadd9e525779f3da8f54510a9dd1ea081 /apps/app_jack.c
parenta79e0451bce168a451e7ed1e30226166e58e203c (diff)
Convert a few places to use ast_calloc_with_stringfields where applicable.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@240368 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_jack.c')
-rw-r--r--apps/app_jack.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/apps/app_jack.c b/apps/app_jack.c
index e8f717b3f..2f263b693 100644
--- a/apps/app_jack.c
+++ b/apps/app_jack.c
@@ -676,11 +676,7 @@ static struct jack_data *jack_data_alloc(void)
{
struct jack_data *jack_data;
- if (!(jack_data = ast_calloc(1, sizeof(*jack_data))))
- return NULL;
-
- if (ast_string_field_init(jack_data, 32)) {
- ast_free(jack_data);
+ if (!(jack_data = ast_calloc_with_stringfields(1, struct jack_data, 32))) {
return NULL;
}