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
This commit is contained in:
Wonki Kim 2020-08-05 15:18:34 +09:00 committed by JunsuChoi
parent 7dcd14347d
commit 19b603166a
1 changed files with 1 additions and 1 deletions

View File

@ -1350,7 +1350,7 @@ _edje_seat_emit(Edje *ed, Efl_Input_Device *dev, const char *sig, const char *sr
if (dev) seat = efl_input_device_seat_get(dev);
if (seat)
{
sname = strdup(efl_name_get(seat));
sname = eina_strdup(efl_name_get(seat));
mdata = _edje_signal_data_setup(NULL, NULL, sname, free);
}
/* keep sending old style signals for legacy compatibility, but provide */