summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWonki Kim <wonki_.kim@samsung.com>2020-08-05 15:18:34 +0900
committerJunsuChoi <jsuya.choi@samsung.com>2020-08-05 15:18:34 +0900
commit19b603166a49a144ea41e7d51261cc8fb69cda7e (patch)
tree707856e08a95532570c21405911effbaf0785f43
parent7dcd14347d0dca5e2bd5bc9c2b4d148607ac19f8 (diff)
edje: fix a potentional error of null deref
Summary: this is a patch to fix a potentional error by null dereferencing. Reviewers: jsuya, bu5hm4n, Hermet Reviewed By: jsuya Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D12086
-rw-r--r--src/lib/edje/edje_program.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/edje/edje_program.c b/src/lib/edje/edje_program.c
index f823c871a2..875bd1d3fd 100644
--- a/src/lib/edje/edje_program.c
+++ b/src/lib/edje/edje_program.c
@@ -1350,7 +1350,7 @@ _edje_seat_emit(Edje *ed, Efl_Input_Device *dev, const char *sig, const char *sr
1350 if (dev) seat = efl_input_device_seat_get(dev); 1350 if (dev) seat = efl_input_device_seat_get(dev);
1351 if (seat) 1351 if (seat)
1352 { 1352 {
1353 sname = strdup(efl_name_get(seat)); 1353 sname = eina_strdup(efl_name_get(seat));
1354 mdata = _edje_signal_data_setup(NULL, NULL, sname, free); 1354 mdata = _edje_signal_data_setup(NULL, NULL, sname, free);
1355 } 1355 }
1356 /* keep sending old style signals for legacy compatibility, but provide */ 1356 /* keep sending old style signals for legacy compatibility, but provide */