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:
3ae85a5
)
video: check null pointer before accessing it.
56/232956/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:33:28 +0000
(10:33 +0900)
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 46e908770fa6ba1ffd6f9762f2aba8aff4910438..84c5bd7e6f3c4dbf3c2e0a14cc39cd13fb4a9921 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);