tbm_bo: initialize the bo2 26/259826/1
authorSooChan Lim <sc1.lim@samsung.com>
Tue, 15 Jun 2021 08:53:18 +0000 (17:53 +0900)
committerSooChan Lim <sc1.lim@samsung.com>
Tue, 15 Jun 2021 08:53:18 +0000 (17:53 +0900)
Change-Id: I56c25746dabf86426ab632bcbfc8b6a6674da8d8

src/tbm_bo.c

index 0d31ea5..cf1dda0 100644 (file)
@@ -617,7 +617,7 @@ tbm_bo_alloc_with_surface(tbm_bufmgr bufmgr, int width, int height, int format,
 tbm_bo
 tbm_bo_alloc_with_bo_data(tbm_bufmgr bufmgr, tbm_backend_bo_data *bo_data, int flags)
 {
-       tbm_bo bo, bo2;
+       tbm_bo bo, bo2 = NULL;
 
        _tbm_bufmgr_mutex_lock();
        _tbm_set_last_result(TBM_ERROR_NONE);