null initialization 25/97125/1
authorSooChan Lim <sc1.lim@samsung.com>
Fri, 11 Nov 2016 07:56:06 +0000 (16:56 +0900)
committerSooChan Lim <sc1.lim@samsung.com>
Fri, 11 Nov 2016 07:56:06 +0000 (16:56 +0900)
LIST_FOR_EACH_ENTRY may use the uninitialized data.

Change-Id: I32efcdd051b71ee3d38c8a5d152066bd806284d5

src/tbm_bufmgr.c

index 05d75f6..43bed67 100644 (file)
@@ -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");