diff options
author | SooChan Lim <sc1.lim@samsung.com> | 2016-11-11 16:56:06 +0900 |
---|---|---|
committer | SooChan Lim <sc1.lim@samsung.com> | 2016-11-11 16:56:06 +0900 |
commit | 729eeea81dd11519b3c1593d7c6c56f1df613b1a (patch) | |
tree | e45f4ec5145e140f559847db1f4e59ff194a301a | |
parent | 96a3d80e30436be53155aaeaa0190d752b42761c (diff) | |
download | libtbm-729eeea81dd11519b3c1593d7c6c56f1df613b1a.tar.gz libtbm-729eeea81dd11519b3c1593d7c6c56f1df613b1a.tar.bz2 libtbm-729eeea81dd11519b3c1593d7c6c56f1df613b1a.zip |
null initialization
LIST_FOR_EACH_ENTRY may use the uninitialized data.
Change-Id: I32efcdd051b71ee3d38c8a5d152066bd806284d5
-rw-r--r-- | src/tbm_bufmgr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tbm_bufmgr.c b/src/tbm_bufmgr.c index 05d75f6..43bed67 100644 --- a/src/tbm_bufmgr.c +++ b/src/tbm_bufmgr.c @@ -423,7 +423,7 @@ _tbm_bo_unlock(tbm_bo bo) static int _tbm_bo_is_valid(tbm_bo bo) { - tbm_bo old_data; + tbm_bo old_data = NULL; if (bo == NULL || gBufMgr == NULL) { TBM_LOG_E("error: bo is NULL or tbm_bufmgr was deinited\n"); |