[asterisk-commits] branch oej/multiparking r12833 -
/team/oej/multiparking/res/res_features.c
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Mon Mar 13 12:54:09 MST 2006
Author: oej
Date: Mon Mar 13 13:54:07 2006
New Revision: 12833
URL: http://svn.digium.com/view/asterisk?rev=12833&view=rev
Log:
Fixing bug found on jsmith's system. Thanks, Jared!
Modified:
team/oej/multiparking/res/res_features.c
Modified: team/oej/multiparking/res/res_features.c
URL: http://svn.digium.com/view/asterisk/team/oej/multiparking/res/res_features.c?rev=12833&r1=12832&r2=12833&view=diff
==============================================================================
--- team/oej/multiparking/res/res_features.c (original)
+++ team/oej/multiparking/res/res_features.c Mon Mar 13 13:54:07 2006
@@ -2183,7 +2183,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));
@@ -2302,6 +2302,7 @@
default_parkinglot->parking_offset = 0;
default_parkinglot->parkfindnext = 0;
default_parkinglot->parkingtime = 0;
+ default_parkinglot->occupiedlots = NULL;
}
}
if (default_parkinglot) {
More information about the asterisk-commits
mailing list