]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Merged revisions 201531 via svnmerge from
authorTilghman Lesher <tilghman@meg.abyt.es>
Wed, 17 Jun 2009 21:32:30 +0000 (21:32 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Wed, 17 Jun 2009 21:32:30 +0000 (21:32 +0000)
https://origsvn.digium.com/svn/asterisk/trunk

........
  r201531 | tilghman | 2009-06-17 16:31:39 -0500 (Wed, 17 Jun 2009) | 7 lines

  Initialize additional variables, to prevent a possible crash.
  (closes issue #15186)
   Reported by: ajohnson
   Patches:
         20090528__issue15186.diff.txt uploaded by tilghman (license 14)
   Tested by: ajohnson
........

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@201532 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_voicemail.c

index 1d7148adc02eba72d7d8dd2eb4e587ace0387aa0..66e3b402f4eb7bc899975c90a9ec75e7aa1c4a8c 100644 (file)
@@ -3213,7 +3213,8 @@ static int store_file(char *dir, char *mailboxuser, char *mailboxcontext, int ms
        char *c;
        struct ast_config *cfg=NULL;
        struct odbc_obj *obj;
-       struct insert_data idata = { .sql = sql, .msgnums = msgnums, .dir = dir, .mailboxuser = mailboxuser, .mailboxcontext = mailboxcontext };
+       struct insert_data idata = { .sql = sql, .msgnums = msgnums, .dir = dir, .mailboxuser = mailboxuser, .mailboxcontext = mailboxcontext,
+               .context = "", .macrocontext = "", .callerid = "", .origtime = "", .duration = "", .category = "", .flag = "" };
        struct ast_flags config_flags = { CONFIG_FLAG_NOCACHE };
 
        delete_file(dir, msgnum);