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:
573319f
)
e_comp_wl_data: fix build warning
97/270597/1
author
Doyoun Kang
<doyoun.kang@samsung.com>
Mon, 7 Feb 2022 00:26:27 +0000
(09:26 +0900)
committer
Doyoun Kang
<doyoun.kang@samsung.com>
Mon, 7 Feb 2022 00:26:27 +0000
(09:26 +0900)
Change-Id: Ibee7d01c8e731ed23bad5ce649a47e4d8c7037b0
src/bin/e_comp_wl_data.c
patch
|
blob
|
history
diff --git
a/src/bin/e_comp_wl_data.c
b/src/bin/e_comp_wl_data.c
index 7d2bcdf19fe566e26bf8330b53c4369da65a379c..a1bbb240b4f44e10546c2d8e77f3a84acc9c5ef6 100644
(file)
--- a/
src/bin/e_comp_wl_data.c
+++ b/
src/bin/e_comp_wl_data.c
@@
-28,8
+28,8
@@
_e_comp_wl_data_offer_cb_accept(struct wl_client *client EINA_UNUSED, struct wl_
static Eina_Bool
_e_comp_wl_dnd_offer_mediate(void *data, Ecore_Fd_Handler *handler)
{
- E_Comp_Wl_Data_Offer *offer;
- char *p;
+ E_Comp_Wl_Data_Offer *offer
= NULL
;
+ char *p
= NULL
;
int read_len = 0, write_len = 0;
int source_fd = -1;
@@
-41,6
+41,7
@@
_e_comp_wl_dnd_offer_mediate(void *data, Ecore_Fd_Handler *handler)
if (offer->fd < 0) goto cleanup;
p = (char *)calloc(sizeof(char), CLIPBOARD_CHUNK);
+ if (!p) goto cleanup;
while ((read_len = read(source_fd, p, CLIPBOARD_CHUNK)) > 0)
{