diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-03-27 23:38:22 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-03-27 23:38:22 +0000 |
commit | 3c70e6a55ea83000d7ba9766c57e1ab106906679 (patch) | |
tree | 97f3595aad053c4d058d85bb0ddf92e1f15ddd21 /apps | |
parent | 0cb41b56ac2a9259e60603cc6df8302f7e9471be (diff) |
Merged revisions 59284 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
................
r59284 | tilghman | 2007-03-27 18:37:31 -0500 (Tue, 27 Mar 2007) | 10 lines
Merged revisions 59283 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r59283 | tilghman | 2007-03-27 18:36:49 -0500 (Tue, 27 Mar 2007) | 2 lines
Oops
........
................
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@59285 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rw-r--r-- | apps/app_voicemail.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index 9787333eb..e665d29e1 100644 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -1442,7 +1442,7 @@ static int store_file(char *dir, char *mailboxuser, char *mailboxcontext, int ms lseek(fd, 0, SEEK_SET); printf("Length is %zd\n", fdlen); fdm = mmap(NULL, fdlen, PROT_READ | PROT_WRITE, MAP_SHARED,fd, 0); - if (fdm != MAP_FAILED) { + if (fdm == MAP_FAILED) { ast_log(LOG_WARNING, "Memory map failed!\n"); ast_odbc_release_obj(obj); goto yuck; |