elc_hoversel: Fix crash when no sd->last_location
authorChristopher Michael <cp.michael@samsung.com>
Sat, 27 Apr 2019 18:21:43 +0000 (14:21 -0400)
committerWoochanlee <wc0917.lee@samsung.com>
Tue, 30 Apr 2019 01:03:06 +0000 (10:03 +0900)
commit42e374c23f9b4c967c684751b5f6a3ee90a72f40
treec0c9e1b2cbe4c259e394587dd6ccc9d8adccf661
parentf8c8f510d600bb1964d553216774cb187c370ce0
elc_hoversel: Fix crash when no sd->last_location

As we cannot pass NULL to strcmp (crashes when we do), we should check
for a valid sd->last_location here in order to avoid crashing. This
was detected in Enlightenment Screen Settings dialog by selecting a
monitor in the hoversel drop down.

@fix
src/lib/elementary/elc_hoversel.c