[glib/application-replace] fixup! Add tests for --gapplication-replace



commit 0998bd767d91effdcb51dea07f6fb3e9b4c38afd
Author: Matthias Clasen <mclasen redhat com>
Date:   Sat Nov 3 11:24:54 2018 -0400

    fixup! Add tests for --gapplication-replace
    
    Use local_error for local errors.

 gio/tests/gapplication.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gio/tests/gapplication.c b/gio/tests/gapplication.c
index 87a0f7dfb..d3db25296 100644
--- a/gio/tests/gapplication.c
+++ b/gio/tests/gapplication.c
@@ -999,12 +999,12 @@ static void
 launch_replacement (const char *const *argv)
 {
   GSubprocessLauncher *launcher;
-  GError *error = NULL;
+  GError *local_error = NULL;
 
   launcher = g_subprocess_launcher_new (G_SUBPROCESS_FLAGS_NONE);
   g_subprocess_launcher_set_environ (launcher, NULL);
-  global_subprocess = g_subprocess_launcher_spawnv (launcher, argv, &error);
-  g_assert_no_error (error);
+  global_subprocess = g_subprocess_launcher_spawnv (launcher, argv, &local_error);
+  g_assert_no_error (local_error);
   g_object_unref (launcher);
 }
 


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