W32: don't put a string literal into gtk_libdir
authorРуслан Ижбулатов <lrn1986@gmail.com>
Sat, 16 Jun 2018 18:22:12 +0000 (18:22 +0000)
committerРуслан Ижбулатов <lrn1986@gmail.com>
Sat, 16 Jun 2018 18:22:12 +0000 (18:22 +0000)
In all other instances gtk_libdir is a dynamically-allocated string,
so dup the literal in this case as well.

gtk/gtkwin32.c

index c316824f5c780b14f2a2380050f0445832954f3d..8923e3f8e26aa5f3976bc989c487dcf812db7413 100644 (file)
@@ -161,7 +161,7 @@ _gtk_get_libdir (void)
       gchar *slash = strrchr (root, '\\');
       if (slash != NULL &&
           g_ascii_strcasecmp (slash + 1, ".libs") == 0)
-        gtk_libdir = GTK_LIBDIR;
+        gtk_libdir = g_strdup (GTK_LIBDIR);
       else
         gtk_libdir = g_build_filename (root, "lib", NULL);
       g_free (root);