[retro-gtk] debug: Make the debug variable static



commit 6afc7a16b36b88457bdb9d0456c4056ec2e09261
Author: Adrien Plazas <kekun plazas laposte net>
Date:   Sat Dec 19 09:08:49 2020 +0100

    debug: Make the debug variable static
    
    Otherwise it will always return FALSE starting from the second call.

 shared/retro-debug.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/shared/retro-debug.c b/shared/retro-debug.c
index b5deea7..00d3a35 100644
--- a/shared/retro-debug.c
+++ b/shared/retro-debug.c
@@ -6,7 +6,7 @@ gboolean
 retro_is_debug (void)
 {
   static gsize init = 0;
-  gboolean debug = FALSE;
+  static gboolean debug = FALSE;
 
   if (g_once_init_enter (&init)) {
     g_auto(GStrv) envp = g_get_environ ();


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