[glib/wip/pwithnall/freebsd-spawn-fix] tests: Add missing NULL terminator to spawn-singlethread test




commit b0187300876c2310125f80fa368abb5c9b1c8d56
Author: Philip Withnall <pwithnall endlessos org>
Date:   Tue Feb 16 15:08:47 2021 +0000

    tests: Add missing NULL terminator to spawn-singlethread test
    
    This should have been in commit
    b31f3f5f806b2185ca15328e30f5d255de23be67.
    
    Signed-off-by: Philip Withnall <pwithnall endlessos org>

 glib/tests/spawn-singlethread.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/glib/tests/spawn-singlethread.c b/glib/tests/spawn-singlethread.c
index 9a18c0640..51a1da514 100644
--- a/glib/tests/spawn-singlethread.c
+++ b/glib/tests/spawn-singlethread.c
@@ -439,7 +439,7 @@ test_spawn_fd_assignment_clash (void)
   const guint n_fds = 10;
   gint source_fds[n_fds];
   gint target_fds[n_fds];
-  const gchar *argv[] = { "/nonexistent" };
+  const gchar *argv[] = { "/nonexistent", NULL };
   gboolean retval;
   GError *local_error = NULL;
   struct stat statbuf;


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