diff options
Diffstat (limited to 'main/indications.c')
-rw-r--r-- | main/indications.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/main/indications.c b/main/indications.c index bde6e012d..89710584b 100644 --- a/main/indications.c +++ b/main/indications.c @@ -1130,13 +1130,13 @@ static void indications_shutdown(void) /*! \brief Load indications module */ int ast_indications_init(void) { - if (!(ast_tone_zones = ao2_container_alloc(NUM_TONE_ZONE_BUCKETS, - ast_tone_zone_hash, ast_tone_zone_cmp))) { + ast_tone_zones = ao2_container_alloc(NUM_TONE_ZONE_BUCKETS, + ast_tone_zone_hash, ast_tone_zone_cmp); + if (!ast_tone_zones) { return -1; } if (load_indications(0)) { - indications_shutdown(); return -1; } |