From: Mark Michelson Date: Wed, 18 Jun 2008 14:54:47 +0000 (+0000) Subject: Silly pointers. This fixes a memory corruption I introduced X-Git-Tag: 1.6.2.0-beta1~1955 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=103a94c6c4dc415e7248112ce1a2a0eae7cded46;p=thirdparty%2Fasterisk.git Silly pointers. This fixes a memory corruption I introduced with the attended transfer logging. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@123650 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/apps/app_queue.c b/apps/app_queue.c index ad1a46a101..51fadd92a0 100644 --- a/apps/app_queue.c +++ b/apps/app_queue.c @@ -3109,7 +3109,7 @@ static int attended_transfer_occurred(struct ast_channel *chan) static void setup_transfer_datastore(struct queue_ent *qe, struct member *member, int starttime) { struct ast_datastore *ds; - struct queue_transfer_ds *qtds = ast_calloc(1, sizeof(qtds)); + struct queue_transfer_ds *qtds = ast_calloc(1, sizeof(*qtds)); if (!qtds) { ast_log(LOG_WARNING, "Memory allocation error!\n");