projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fb4d76d
)
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
patch
|
blob
|
history
diff --git
a/gtk/gtkwin32.c
b/gtk/gtkwin32.c
index c316824f5c780b14f2a2380050f0445832954f3d..8923e3f8e26aa5f3976bc989c487dcf812db7413 100644
(file)
--- 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);