aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--main/indications.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/main/indications.c b/main/indications.c
index edde12a90..28c778ad1 100644
--- a/main/indications.c
+++ b/main/indications.c
@@ -383,11 +383,8 @@ struct ind_tone_zone *ast_get_indication_zone(const char *country)
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) {