ecore_wl2_display: Add some null checks. 18/206018/2 accepted/tizen/unified/20190514.080042 submit/tizen/20190514.054145 submit/tizen/20190514.062834
authorJunseok, Kim <juns.kim@samsung.com>
Mon, 13 May 2019 08:38:04 +0000 (17:38 +0900)
committerJunseok, Kim <juns.kim@samsung.com>
Mon, 13 May 2019 08:48:14 +0000 (17:48 +0900)
Change-Id: I82ca08b465852ad7aff74ccc53ed82882e3643af

src/lib/ecore_wl2/ecore_wl2_display.c

index 7a22355..887b3f3 100644 (file)
@@ -1904,7 +1904,7 @@ ecore_wl2_display_screen_size_get(Ecore_Wl2_Display *display, int *w, int *h)
         if (h) *h = _base_resolution_h;
 
         INF("ecore_wl2_display_screen_size_get called, pid: %d / width: %d / height: %d / b_res_w: %d / b_res_h: %d",
-            pid, *w, *h, _base_resolution_w, _base_resolution_h);
+            pid, (w? *w : -1), (h? *h : -1), _base_resolution_w, _base_resolution_h);
         return;
      }
 without_tz_appinfo: