Resolve some compiler warnings
authorRussell Bryant <russell@russellbryant.com>
Mon, 25 Dec 2006 02:06:47 +0000 (02:06 +0000)
committerRussell Bryant <russell@russellbryant.com>
Mon, 25 Dec 2006 02:06:47 +0000 (02:06 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48950 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/frame.c

index 52d5ecf..0e46dcd 100644 (file)
@@ -1084,7 +1084,7 @@ int ast_codec_pref_setsize(struct ast_codec_pref *pref, int format, int framems)
 struct ast_format_list ast_codec_pref_getsize(struct ast_codec_pref *pref, int format)
 {
        int x, index = -1, framems = 0;
-       struct ast_format_list fmt;
+       struct ast_format_list fmt = { 0, };
 
        for (x = 0; x < sizeof(AST_FORMAT_LIST) / sizeof(AST_FORMAT_LIST[0]); x++) {
                if(AST_FORMAT_LIST[x].bits == format) {