[asterisk-commits] oej: branch oej/minivoicemail r63746 - /team/oej/minivoicemail/apps/app_minivm.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Thu May 10 11:14:23 MST 2007


Author: oej
Date: Thu May 10 13:14:22 2007
New Revision: 63746

URL: http://svn.digium.com/view/asterisk?view=rev&rev=63746
Log:
Fix crash bug detected by Mats

Modified:
    team/oej/minivoicemail/apps/app_minivm.c

Modified: team/oej/minivoicemail/apps/app_minivm.c
URL: http://svn.digium.com/view/asterisk/team/oej/minivoicemail/apps/app_minivm.c?view=diff&rev=63746&r1=63745&r2=63746
==============================================================================
--- team/oej/minivoicemail/apps/app_minivm.c (original)
+++ team/oej/minivoicemail/apps/app_minivm.c Thu May 10 13:14:22 2007
@@ -2286,6 +2286,9 @@
 static void timezone_destroy_list(void)
 {
 	struct minivm_zone *this;
+	if (AST_LIST_EMPTY(&minivm_zones))
+		return;
+
 	AST_LIST_LOCK(&minivm_zones);
 	while ((this = AST_LIST_REMOVE_HEAD(&minivm_zones, list))) 
 		free(this);



More information about the asterisk-commits mailing list