From 45cc9daf82003eeb93f0987f8cec1a3bf1557fce Mon Sep 17 00:00:00 2001 From: "Xiang, Haihao" Date: Mon, 12 Aug 2013 14:28:01 +0800 Subject: [PATCH] vatrace: Initialize the local variable 'i' Otherwise the variable is used without being initialized. Signed-off-by: Xiang, Haihao (cherry picked from commit f5a6a2867b88b36936bf721682b674e2979065d3) --- va/va_trace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/va/va_trace.c b/va/va_trace.c index ed4a30d..f50bd84 100644 --- a/va/va_trace.c +++ b/va/va_trace.c @@ -310,7 +310,7 @@ void va_TraceCodedBuf(VADisplay dpy) { VACodedBufferSegment *buf_list = NULL; VAStatus va_status; - int i; + int i = 0; DPY2TRACECTX(dpy); -- 2.7.4