aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_voicemail.c
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-06-21 21:40:19 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-06-21 21:40:19 +0000
commitd114a8b336488e864887b4c50d6a52ae98f3db67 (patch)
tree83f4e44bdb4e1c4e249bd47ee139b49920304a56 /apps/app_voicemail.c
parent648263a9f6dfa8f831c0dadb56f7575d36e728c4 (diff)
Merged revisions 70898 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r70898 | file | 2007-06-21 17:37:55 -0400 (Thu, 21 Jun 2007) | 2 lines Don't explode if the gain option is specified without a value. (issue #9274 reported by mfarver) ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@70899 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_voicemail.c')
-rw-r--r--apps/app_voicemail.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c
index 3e5979e5c..fdf04a90a 100644
--- a/apps/app_voicemail.c
+++ b/apps/app_voicemail.c
@@ -6301,7 +6301,7 @@ static int vm_execmain(struct ast_channel *chan, void *data)
}
if (ast_test_flag(&flags, OPT_RECORDGAIN)) {
int gain;
- if (opts[OPT_ARG_RECORDGAIN]) {
+ if (!ast_strlen_zero(opts[OPT_ARG_RECORDGAIN])) {
if (sscanf(opts[OPT_ARG_RECORDGAIN], "%d", &gain) != 1) {
ast_log(LOG_WARNING, "Invalid value '%s' provided for record gain option\n", opts[OPT_ARG_RECORDGAIN]);
ast_module_user_remove(u);