aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-07-18 20:00:23 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-07-18 20:00:23 +0000
commitb04467f5e390f79c1a9a805c62b3d33e694386ca (patch)
treebdb6fd0e6fa57e9fd1f3c98a264dd2be73dddfd2 /apps
parentb2bbc5bc21a3e1a316872ba13d4659c668b136b2 (diff)
Backport GCC 4.2 fixes. Without these Asterisk won't build under devmode using GCC 4.2.
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@75712 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rw-r--r--apps/app_voicemail.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c
index 891acf1ee..c3827747d 100644
--- a/apps/app_voicemail.c
+++ b/apps/app_voicemail.c
@@ -553,12 +553,9 @@ static void populate_defaults(struct ast_vm_user *vmu)
ast_copy_flags(vmu, (&globalflags), AST_FLAGS_ALL);
if (saydurationminfo)
vmu->saydurationm = saydurationminfo;
- if (callcontext)
- ast_copy_string(vmu->callback, callcontext, sizeof(vmu->callback));
- if (dialcontext)
- ast_copy_string(vmu->dialout, dialcontext, sizeof(vmu->dialout));
- if (exitcontext)
- ast_copy_string(vmu->exit, exitcontext, sizeof(vmu->exit));
+ ast_copy_string(vmu->callback, callcontext, sizeof(vmu->callback));
+ ast_copy_string(vmu->dialout, dialcontext, sizeof(vmu->dialout));
+ ast_copy_string(vmu->exit, exitcontext, sizeof(vmu->exit));
if (maxmsg)
vmu->maxmsg = maxmsg;
vmu->volgain = volgain;