diff options
author | Lim Siew Hoon <siew.hoon.lim@intel.com> | 2016-07-01 11:13:21 +0800 |
---|---|---|
committer | Xiang, Haihao <haihao.xiang@intel.com> | 2016-08-22 13:04:29 +0800 |
commit | 466dde116b125a368fc216af6b488d4d92baf948 (patch) | |
tree | 74dde70d960b1f39ae54b36378032b510df2e866 /test/basic/test_05.c | |
parent | 1aa71317e9d904ed630714388986f316d9fc2567 (diff) |
add assert to check for potential NULL issue in test_XX
Signed-off-by: Lim Siew Hoon <siew.hoon.lim@intel.com>
(cherry picked from commit 56f90c0dee7de287f9557c59d65f870240b3ada2)
Diffstat (limited to 'test/basic/test_05.c')
-rw-r--r-- | test/basic/test_05.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/basic/test_05.c b/test/basic/test_05.c index 233aa01..a05100d 100644 --- a/test/basic/test_05.c +++ b/test/basic/test_05.c @@ -44,6 +44,7 @@ void test() ASSERT(entrypoints); VAConfigID *configs = malloc(max_entrypoints * num_profiles * sizeof(VAConfigID)); + ASSERT(configs); for(i = 0; i < num_profiles; i++) { |