projects
/
platform
/
upstream
/
enlightenment.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
36e0d63
)
video: check null pointer before accessing it.
58/232958/1
author
Seunghun Lee
<shiin.lee@samsung.com>
Mon, 11 May 2020 01:33:17 +0000
(10:33 +0900)
committer
Seunghun Lee
<shiin.lee@samsung.com>
Mon, 11 May 2020 01:32:31 +0000
(
01:32
+0000)
Change-Id: I451c56242fd84948b0f9907dcce9acc747824605
src/bin/video/e_comp_wl_video.c
patch
|
blob
|
history
diff --git
a/src/bin/video/e_comp_wl_video.c
b/src/bin/video/e_comp_wl_video.c
index 1fc7b5faee7dba6d12d564916fd0e9f14a593c06..15c7be51067b7c508304c2b1a884fdb344635609 100644
(file)
--- a/
src/bin/video/e_comp_wl_video.c
+++ b/
src/bin/video/e_comp_wl_video.c
@@
-183,6
+183,9
@@
_e_comp_wl_video_object_cb_set_attribute(struct wl_client *client,
video = wl_resource_get_user_data(resource);
EINA_SAFETY_ON_NULL_RETURN(video);
+ if (!video->ec)
+ return;
+
VIN("Client(%s):PID(%d) Attribute:%s, Value:%d",
video->ec, e_client_util_name_get(video->ec) ?: "No Name",
video->ec->netwm.pid, name, value);