Fix a coverity issue 77/243677/1 submit/tizen/20200910.010356
authorSunghyun Kim <scholb.kim@samsung.com>
Wed, 9 Sep 2020 05:41:46 +0000 (14:41 +0900)
committerSunghyun Kim <scholb.kim@samsung.com>
Wed, 9 Sep 2020 05:41:46 +0000 (14:41 +0900)
wl_surface need to initialize

Change-Id: Ieafbe1e9a5f748274873f39a4e7ee1b5c1e31973

watch_viewer_dali/internal/watch_view/watch_view_impl.cpp

index 1d29feef5519fa328ceab29836006131951f4461..926da33acbfdc2f3a212a3763c37769b40ce9625 100644 (file)
@@ -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();