From 6bf88d90f3df03ac2e5cb664ccf521785431aa34 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=D0=A0=D1=83=D1=81=D0=BB=D0=B0=D0=BD=20=D0=98=D0=B6=D0=B1?= =?utf8?q?=D1=83=D0=BB=D0=B0=D1=82=D0=BE=D0=B2?= Date: Sat, 16 Jun 2018 18:22:12 +0000 Subject: [PATCH] W32: don't put a string literal into gtk_libdir In all other instances gtk_libdir is a dynamically-allocated string, so dup the literal in this case as well. --- gtk/gtkwin32.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk/gtkwin32.c b/gtk/gtkwin32.c index c316824f5c..8923e3f8e2 100644 --- a/gtk/gtkwin32.c +++ b/gtk/gtkwin32.c @@ -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); -- 2.30.2