diff options
author | Xiang, Haihao <haihao.xiang@intel.com> | 2013-06-20 14:31:57 +0800 |
---|---|---|
committer | Xiang, Haihao <haihao.xiang@intel.com> | 2014-03-17 09:30:44 +0800 |
commit | cfce6511c2b56148452771a9c2f855b50a522dc0 (patch) | |
tree | 3d5b0370dcb7d619fa05426596ca3d4e408cfab7 /va | |
parent | 94ca3377019b57f6558641de45750adaa7a8c34a (diff) | |
download | libva-cfce6511c2b56148452771a9c2f855b50a522dc0.tar.gz |
va_trace: avoid to dereference a NULL pointer
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
(cherry picked from commit e635bf060b68694174cbf24c6b06c573b629ddcc)
Diffstat (limited to 'va')
-rw-r--r-- | va/va_trace.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/va/va_trace.c b/va/va_trace.c index 8f5991d..5c4b468 100644 --- a/va/va_trace.c +++ b/va/va_trace.c @@ -2674,9 +2674,10 @@ void va_TraceQueryDisplayAttributes ( DPY2INDEX(dpy); - va_TraceMsg(idx, "\tnum_attributes = %d\n", *num_attributes); if (attr_list == NULL || num_attributes == NULL) return; + + va_TraceMsg(idx, "\tnum_attributes = %d\n", *num_attributes); for (i=0; i<*num_attributes; i++) { va_TraceMsg(idx, "\tattr_list[%d] =\n"); |