diff --git a/main/frame.c b/main/frame.c index 52d5ecfc2cfd6c9b53af0cb08bc9fdbb9da63c55..0e46dcdcae8800b27a7b3526752cf823168deced 100644 --- a/main/frame.c +++ b/main/frame.c @@ -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) {