vatrace: Initialize the local variable 'i'
authorXiang, Haihao <haihao.xiang@intel.com>
Mon, 12 Aug 2013 06:28:01 +0000 (14:28 +0800)
committerXiang, Haihao <haihao.xiang@intel.com>
Mon, 17 Mar 2014 01:36:10 +0000 (09:36 +0800)
Otherwise the variable is used without being initialized.

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
(cherry picked from commit f5a6a2867b88b36936bf721682b674e2979065d3)

va/va_trace.c

index ed4a30d..f50bd84 100644 (file)
@@ -310,7 +310,7 @@ void va_TraceCodedBuf(VADisplay dpy)
 {
     VACodedBufferSegment *buf_list = NULL;
     VAStatus va_status;
-    int i;
+    int i = 0;
     
     DPY2TRACECTX(dpy);