[asterisk-commits] russell: trunk r167442 - in /trunk: ./ main/indications.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Wed Jan 7 11:35:39 CST 2009
Author: russell
Date: Wed Jan 7 11:35:39 2009
New Revision: 167442
URL: http://svn.digium.com/view/asterisk?view=rev&rev=167442
Log:
Merged revisions 167432 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r167432 | russell | 2009-01-07 11:29:53 -0600 (Wed, 07 Jan 2009) | 4 lines
Treat an empty string the same way as a NULL country argument.
In passing, simplify the handling of returning a default tone zone.
........
Modified:
trunk/ (props changed)
trunk/main/indications.c
Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-1.4-merged' - no diff available.
Modified: trunk/main/indications.c
URL: http://svn.digium.com/view/asterisk/trunk/main/indications.c?view=diff&rev=167442&r1=167441&r2=167442
==============================================================================
--- trunk/main/indications.c (original)
+++ trunk/main/indications.c Wed Jan 7 11:35:39 2009
@@ -383,11 +383,8 @@
AST_RWLIST_RDLOCK(&tone_zones);
- if (!country) {
- if (current_tonezone)
- tz = current_tonezone;
- else
- tz = AST_LIST_FIRST(&tone_zones);
+ if (ast_strlen_zero(country)) {
+ tz = current_tonezone ? current_tonezone : AST_LIST_FIRST(&tone_zones);
} else {
do {
AST_RWLIST_TRAVERSE(&tone_zones, tz, list) {
More information about the asterisk-commits
mailing list