FS-10050 fix seg

This commit is contained in:
Seven Du 2017-03-03 09:00:12 +08:00
parent 2bd0ff45f4
commit 11883c02e0
1 changed files with 1 additions and 1 deletions

View File

@ -440,8 +440,8 @@ SWITCH_STANDARD_APP(chromakey_start_function)
context = (chromakey_context_t *) switch_core_session_alloc(session, sizeof(*context));
switch_assert(context != NULL);
memset(context, 0, sizeof(*context));
init_context(context);
context->session = session;
init_context(context);
if (data && (lbuf = switch_core_session_strdup(session, data))
&& (argc = switch_separate_string(lbuf, ' ', argv, (sizeof(argv) / sizeof(argv[0]))))) {