30 lines
829 B
Diff
30 lines
829 B
Diff
|
https://github.com/Pulse-Eight/libcec/pull/599
|
||
|
|
||
|
From 452b2049b2ee3e73968c603e5524b2d349ac0c3e Mon Sep 17 00:00:00 2001
|
||
|
From: psykose <alice@ayaya.dev>
|
||
|
Date: Sat, 9 Apr 2022 17:59:11 +0000
|
||
|
Subject: [PATCH] cecloader.h: fix null return
|
||
|
|
||
|
returning NULL is invalid for a return type of bool when NULL is defined
|
||
|
as `nullptr` instead of 0L
|
||
|
--- a/include/cecloader.h
|
||
|
+++ b/include/cecloader.h
|
||
|
@@ -172,7 +172,7 @@ bool LibCecBootloader(const char *strLib = NULL)
|
||
|
if (!g_libCEC)
|
||
|
{
|
||
|
std::cout << dlerror() << std::endl;
|
||
|
- return NULL;
|
||
|
+ return false;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@@ -181,7 +181,7 @@ bool LibCecBootloader(const char *strLib = NULL)
|
||
|
if (!LibCecBootloader)
|
||
|
{
|
||
|
std::cout << "cannot find CECStartBootloader" << std::endl;
|
||
|
- return NULL;
|
||
|
+ return false;
|
||
|
}
|
||
|
|
||
|
bool bReturn = LibCecBootloader();
|