diff --git a/apps/app_queue.c b/apps/app_queue.c
index ad1a46a10115bbfd7ab6fe0a40be91b32fbcb0fd..51fadd92a06c9c14d881596ca64058ffb66d0d20 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");