[asterisk-commits] mmichelson: trunk r123650 - /trunk/apps/app_queue.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Jun 18 09:54:47 CDT 2008


Author: mmichelson
Date: Wed Jun 18 09:54:47 2008
New Revision: 123650

URL: http://svn.digium.com/view/asterisk?view=rev&rev=123650
Log:
Silly pointers. This fixes a memory corruption I introduced
with the attended transfer logging.


Modified:
    trunk/apps/app_queue.c

Modified: trunk/apps/app_queue.c
URL: http://svn.digium.com/view/asterisk/trunk/apps/app_queue.c?view=diff&rev=123650&r1=123649&r2=123650
==============================================================================
--- trunk/apps/app_queue.c (original)
+++ trunk/apps/app_queue.c Wed Jun 18 09:54:47 2008
@@ -3109,7 +3109,7 @@
 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");




More information about the asterisk-commits mailing list