Make sure we set flags to a 0 value before trying to use it. Pointed out by seanbrig...
authorJason Parker <jparker@digium.com>
Mon, 29 Oct 2007 19:56:50 +0000 (19:56 +0000)
committerJason Parker <jparker@digium.com>
Mon, 29 Oct 2007 19:56:50 +0000 (19:56 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@87393 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_record.c

index 654bfdd..83d4000 100644 (file)
@@ -117,7 +117,7 @@ static int record_exec(struct ast_channel *chan, void *data)
        int ioflags;
        int waitres;
        struct ast_silence_generator *silgen = NULL;
-       struct ast_flags flags;
+       struct ast_flags flags = { 0, };
        AST_DECLARE_APP_ARGS(args,
                AST_APP_ARG(filename);
                AST_APP_ARG(silence);