[gnome-builder/gnome-builder-3-38] debugger: fix compiler warning



commit afc6f53bb6848de05453ef817ca20667d04b8d3a
Author: Christian Hergert <chergert redhat com>
Date:   Mon Dec 14 11:28:46 2020 -0800

    debugger: fix compiler warning

 src/libide/debugger/ide-debug-manager.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/libide/debugger/ide-debug-manager.c b/src/libide/debugger/ide-debug-manager.c
index 4b4a989d4..ef85ae598 100644
--- a/src/libide/debugger/ide-debug-manager.c
+++ b/src/libide/debugger/ide-debug-manager.c
@@ -981,6 +981,7 @@ ide_debug_manager_start (IdeDebugManager  *self,
                          GError          **error)
 {
   g_autoptr(IdeDebugger) debugger = NULL;
+  IdeEnvironment *environment;
   gboolean ret = FALSE;
 
   IDE_ENTRY;
@@ -1001,7 +1002,7 @@ ide_debug_manager_start (IdeDebugManager  *self,
       IDE_GOTO (failure);
     }
 
-  IdeEnvironment *environment = ide_runner_get_environment (runner);
+  environment = ide_runner_get_environment (runner);
   ide_environment_setenv (environment, "G_MESSAGES_DEBUG", "all");
   ide_debugger_prepare (debugger, runner);
 


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