aboutsummaryrefslogtreecommitdiffstats
path: root/indications.c
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2006-05-08 21:00:16 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2006-05-08 21:00:16 +0000
commitfdb839ee42307abd4de20445effd51aac1ca5f3d (patch)
tree9273d299a8fe84b33fe0133b7e407df82b489e47 /indications.c
parentc185afc30d448996374e8b10d5d406826b4ba069 (diff)
make sure that the MOD_SUBDIR_CFLAGS and OTHER_SUBDIR_FLAGS come before
ASTCFLAGS so that -Iinclude comes before any system include path git-svn-id: http://svn.digium.com/svn/asterisk/trunk@25686 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'indications.c')
-rw-r--r--indications.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/indications.c b/indications.c
index 9b632de98..996e43e86 100644
--- a/indications.c
+++ b/indications.c
@@ -412,12 +412,13 @@ struct tone_zone_sound *ast_get_indication_tone(const struct tone_zone *zone, co
struct tone_zone_sound *ts;
/* we need some tonezone, pick the first */
- if (zone == NULL && current_tonezone)
- zone = current_tonezone; /* default country? */
- if (zone == NULL && tone_zones)
- zone = tone_zones; /* any country? */
- if (zone == NULL)
- return 0; /* not a single country insight */
+ if (!zone) {
+ if (current_tonezone)
+ return current_tonezone; /* default country? */
+ if (tone_zones)
+ return tone_zones; /* any country? */
+ return 0; /* not a single country insight */
+ }
if (ast_mutex_lock(&tzlock)) {
ast_log(LOG_WARNING, "Unable to lock tone_zones list\n");