From: Xiang, Haihao Date: Fri, 24 Jun 2011 01:10:47 +0000 (+0800) Subject: va: fix warning about memset. X-Git-Tag: libva-1.0.14~21 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3c98acb5dcb3026da570634add4220e8bf0b9e6b;p=profile%2Fivi%2Flibva.git va: fix warning about memset. Signed-off-by: Xiang, Haihao --- diff --git a/va/va_fool.c b/va/va_fool.c index 2d1ec4c..53b8f7a 100644 --- a/va/va_fool.c +++ b/va/va_fool.c @@ -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; } diff --git a/va/va_trace.c b/va/va_trace.c index 6087cb3..2b1fff5 100644 --- a/va/va_trace.c +++ b/va/va_trace.c @@ -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)); }