summaryrefslogtreecommitdiff
path: root/src/lib/ecore_drm/ecore_drm_launcher.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/ecore_drm/ecore_drm_launcher.c')
-rw-r--r--src/lib/ecore_drm/ecore_drm_launcher.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/ecore_drm/ecore_drm_launcher.c b/src/lib/ecore_drm/ecore_drm_launcher.c
index 8166fe4804..e66918a6f0 100644
--- a/src/lib/ecore_drm/ecore_drm_launcher.c
+++ b/src/lib/ecore_drm/ecore_drm_launcher.c
@@ -56,6 +56,7 @@ _ecore_drm_launcher_device_flags_set(int fd, int flags)
56EAPI Eina_Bool 56EAPI Eina_Bool
57ecore_drm_launcher_connect(Ecore_Drm_Device *dev) 57ecore_drm_launcher_connect(Ecore_Drm_Device *dev)
58{ 58{
59 EINA_SAFETY_ON_NULL_RETURN_VAL(dev, EINA_FALSE);
59 /* try to connect to logind */ 60 /* try to connect to logind */
60 if (!(logind = _ecore_drm_logind_connect(dev))) 61 if (!(logind = _ecore_drm_logind_connect(dev)))
61 { 62 {
@@ -86,6 +87,7 @@ ecore_drm_launcher_connect(Ecore_Drm_Device *dev)
86EAPI void 87EAPI void
87ecore_drm_launcher_disconnect(Ecore_Drm_Device *dev) 88ecore_drm_launcher_disconnect(Ecore_Drm_Device *dev)
88{ 89{
90 EINA_SAFETY_ON_NULL_RETURN(dev);
89 if (dev->tty.switch_hdlr) ecore_event_handler_del(dev->tty.switch_hdlr); 91 if (dev->tty.switch_hdlr) ecore_event_handler_del(dev->tty.switch_hdlr);
90 dev->tty.switch_hdlr = NULL; 92 dev->tty.switch_hdlr = NULL;
91 93