[asterisk-commits] branch oej/test-this-branch r12832 - /team/oej/test-this-branch/res/

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Mon Mar 13 12:51:31 MST 2006


Author: oej
Date: Mon Mar 13 13:51:29 2006
New Revision: 12832

URL: http://svn.digium.com/view/asterisk?rev=12832&view=rev
Log:
Bug fix - thanks jsmith!

Modified:
    team/oej/test-this-branch/res/res_features.c

Modified: team/oej/test-this-branch/res/res_features.c
URL: http://svn.digium.com/view/asterisk/team/oej/test-this-branch/res/res_features.c?rev=12832&r1=12831&r2=12832&view=diff
==============================================================================
--- team/oej/test-this-branch/res/res_features.c (original)
+++ team/oej/test-this-branch/res/res_features.c Mon Mar 13 13:51:29 2006
@@ -1614,7 +1614,6 @@
 	return res;
 }
 
-/*--- do_parking_thred: Take care of parked calls and unpark them if needed */
 static void *do_parking_thread(void *ignore)
 {
 	int ms, tms, max;
@@ -2270,7 +2269,7 @@
 	if (!name)
 		return NULL;
 
-	newlot = malloc(sizeof(struct ast_parkinglot));
+	newlot = ast_calloc(1, sizeof(*newlot));
 	if (!newlot)
 		return NULL;
 	ast_copy_string(newlot->name, name, sizeof(newlot->name));
@@ -2409,6 +2408,7 @@
 			default_parkinglot->parkfindnext = 0;
 			default_parkinglot->parkaddhints = 0;
 			default_parkinglot->parkingtime = 0;
+			default_parkinglot->occupiedlots = NULL;
 		}
 	}
 	if (default_parkinglot) {



More information about the asterisk-commits mailing list