Commit 3c98acb5 authored by Xiang, Haihao's avatar Xiang, Haihao

va: fix warning about memset.

Signed-off-by: default avatarXiang, Haihao <haihao.xiang@intel.com>
parent 20574567
......@@ -217,7 +217,7 @@ int va_FoolEnd(VADisplay dpy)
if (fool_context[idx].codebuf)
free(fool_context[idx].codebuf);
memset(&fool_context[idx], sizeof(struct _fool_context), 0);
memset(&fool_context[idx], 0, sizeof(struct _fool_context));
return 0;
}
......
......@@ -244,7 +244,7 @@ void va_TraceEnd(VADisplay dpy)
if (trace_context[idx].trace_fp_surface && (trace_context[idx].trace_fp_surface != stderr))
fclose(trace_context[idx].trace_fp_surface);
memset(&trace_context[idx], sizeof(struct _trace_context), 0);
memset(&trace_context[idx], 0, sizeof(struct _trace_context));
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment