[retro-gtk] core: Sanitize bool setters



commit 807b6da0693ed29fafac625fab22ca74f9e7344a
Author: Adrien Plazas <kekun plazas laposte net>
Date:   Sun Dec 20 10:14:57 2020 +0100

    core: Sanitize bool setters
    
    While the values are unlikely to case issues, being careful doesn't
    hurt.

 retro-runner/retro-core.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/retro-runner/retro-core.c b/retro-runner/retro-core.c
index 79a8cf1..ebe31a1 100644
--- a/retro-runner/retro-core.c
+++ b/retro-runner/retro-core.c
@@ -1248,6 +1248,8 @@ retro_core_set_support_no_game (RetroCore *self,
 {
   g_return_if_fail (RETRO_IS_CORE (self));
 
+  support_no_game = !!support_no_game;
+
   if (retro_core_get_support_no_game (self) == support_no_game)
     return;
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]