summaryrefslogtreecommitdiffstats
path: root/libhb/ports.c
diff options
context:
space:
mode:
Diffstat (limited to 'libhb/ports.c')
-rw-r--r--libhb/ports.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libhb/ports.c b/libhb/ports.c
index f698dfe53..5d71541ab 100644
--- a/libhb/ports.c
+++ b/libhb/ports.c
@@ -1306,6 +1306,7 @@ void hb_system_sleep_private_enable(void *opaque)
if (opaque == NULL)
{
hb_error("hb_system_sleep: opaque is NULL");
+ return;
}
IOPMAssertionID *assertionID = (IOPMAssertionID*)opaque;
@@ -1336,6 +1337,7 @@ void hb_system_sleep_private_disable(void *opaque)
if (opaque == NULL)
{
hb_error("hb_system_sleep: opaque is NULL");
+ return;
}
IOPMAssertionID *assertionID = (IOPMAssertionID*)opaque;