Fix issue detected by static analysis tool 27/295527/1
authorInhong Han <inhong1.han@samsung.com>
Mon, 10 Jul 2023 07:03:15 +0000 (16:03 +0900)
committerTizen Window System <tizen.windowsystem@gmail.com>
Mon, 10 Jul 2023 09:55:41 +0000 (18:55 +0900)
Passing null pointer comp_surface to wl_resource_get_id, which dereferences it.

Change-Id: Ief36419d5af201d18f1e413b59057881cb491d9d

src/bin/e_comp_wl_viewport.c

index fe3713adb4d07660970e9b7350a9b763fc3df884..3cc88baae6866270bfe725be87ee6982d2cc445c 100644 (file)
@@ -1705,8 +1705,7 @@ e_comp_wl_viewport_create(struct wl_resource *resource,
    struct wl_resource *comp_surface = e_comp_wl_client_surface_get(ec);
    if (!comp_surface)
      {
-        ERR("wrong resource %d", wl_resource_get_id(comp_surface));
-
+        ERR("wrong resource");
         return EINA_FALSE;
      }