From 883d801aecd783ac0b621d87c2f1900378426332 Mon Sep 17 00:00:00 2001 From: Sunghyun Kim Date: Wed, 9 Sep 2020 14:41:46 +0900 Subject: [PATCH] Fix a coverity issue wl_surface need to initialize Change-Id: Ieafbe1e9a5f748274873f39a4e7ee1b5c1e31973 --- watch_viewer_dali/internal/watch_view/watch_view_impl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/watch_viewer_dali/internal/watch_view/watch_view_impl.cpp b/watch_viewer_dali/internal/watch_view/watch_view_impl.cpp index 1d29fee..926da33 100644 --- a/watch_viewer_dali/internal/watch_view/watch_view_impl.cpp +++ b/watch_viewer_dali/internal/watch_view/watch_view_impl.cpp @@ -221,7 +221,7 @@ void WatchView::OnBound(const WatchBase& watch) wl_surface* WatchView::GetWlSurface() const { - struct wl_surface *wlsurface; + struct wl_surface *wlsurface = NULL; if( mWindow ) { Any nativeHandle = mWindow.GetNativeHandle(); -- 2.34.1