buffer: initializing pointer 14/171114/2
authorBoram Park <boram1288.park@samsung.com>
Mon, 26 Feb 2018 23:29:36 +0000 (08:29 +0900)
committerBoram Park <boram1288.park@samsung.com>
Mon, 26 Feb 2018 23:51:00 +0000 (08:51 +0900)
Change-Id: Ifbc4bb53e006103a9ff4c4ad1692027f0f3d7ac4

src/tdm_buffer.c

index 31e8c41..e437a58 100644 (file)
@@ -239,7 +239,7 @@ tdm_buffer_add_destroy_handler(tbm_surface_h buffer,
                                                           tdm_buffer_destroy_handler func, void *user_data)
 {
        tdm_buffer_info *buf_info;
-       tdm_buffer_func_info *func_info;
+       tdm_buffer_func_info *func_info = NULL;
 
        TDM_RETURN_VAL_IF_FAIL(buffer != NULL, TDM_ERROR_INVALID_PARAMETER);
        TDM_RETURN_VAL_IF_FAIL(func != NULL, TDM_ERROR_INVALID_PARAMETER);