1From 452b2049b2ee3e73968c603e5524b2d349ac0c3e Mon Sep 17 00:00:00 2001 2From: psykose <alice@ayaya.dev> 3Date: Sat, 9 Apr 2022 17:59:11 +0000 4Subject: [PATCH] cecloader.h: fix null return 5 6returning NULL is invalid for a return type of bool when NULL is defined 7as `nullptr` instead of 0L 8 9[Retrieved from: 10https://github.com/Pulse-Eight/libcec/pull/599/commits/452b2049b2ee3e73968c603e5524b2d349ac0c3e] 11Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> 12--- 13 include/cecloader.h | 4 ++-- 14 1 file changed, 2 insertions(+), 2 deletions(-) 15 16diff --git a/include/cecloader.h b/include/cecloader.h 17index be76468f..550f598e 100644 18--- a/include/cecloader.h 19+++ b/include/cecloader.h 20@@ -172,7 +172,7 @@ bool LibCecBootloader(const char *strLib = NULL) 21 if (!g_libCEC) 22 { 23 std::cout << dlerror() << std::endl; 24- return NULL; 25+ return false; 26 } 27 } 28 29@@ -181,7 +181,7 @@ bool LibCecBootloader(const char *strLib = NULL) 30 if (!LibCecBootloader) 31 { 32 std::cout << "cannot find CECStartBootloader" << std::endl; 33- return NULL; 34+ return false; 35 } 36 37 bool bReturn = LibCecBootloader(); 38