[glib: 4/11] gio/tests: fix content type guess for directory on win32




commit 529e091bb56f39e6351c2c425f20e5d1c2674290
Author: Marc-André Lureau <marcandre lureau redhat com>
Date:   Wed Feb 16 15:25:09 2022 +0400

    gio/tests: fix content type guess for directory on win32
    
    Signed-off-by: Marc-André Lureau <marcandre lureau redhat com>

 gio/tests/contenttype.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gio/tests/contenttype.c b/gio/tests/contenttype.c
index 10b795a05..cb10c86c0 100644
--- a/gio/tests/contenttype.c
+++ b/gio/tests/contenttype.c
@@ -30,7 +30,7 @@ test_guess (void)
   existing_directory = (gchar *) g_getenv ("SYSTEMROOT");
 
   if (existing_directory)
-    existing_directory = g_strdup_printf ("%s/", existing_directory);
+    existing_directory = g_strdup_printf ("%s" G_DIR_SEPARATOR_S, existing_directory);
 #else
   existing_directory = g_strdup ("/etc/");
 #endif


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