summaryrefslogtreecommitdiff
path: root/gtk
diff options
context:
space:
mode:
authorRobert Brady <robert@suse.co.uk>2000-11-15 02:45:55 +0000
committerRobert Brady <rbrady@src.gnome.org>2000-11-15 02:45:55 +0000
commit98e453dc0457c00220a82468c1a140bb68bb455d (patch)
treed105e5b1f143fb150e45f497d1053730be2d192e /gtk
parent0ac162b1b6cb6a7d9723f2b0b655cf61022cc459 (diff)
downloadgtk+-98e453dc0457c00220a82468c1a140bb68bb455d.tar.gz
The return value of g_getenv() isn't freeable, so g_strdup it.
Wed Nov 15 02:18:01 2000 Robert Brady <robert@suse.co.uk> * gtk/gtkrc.c (gtk_rc_get_im_module_file): The return value of g_getenv() isn't freeable, so g_strdup it. * modules/input/inuktitut.c: Inuktitut input method. * modules/input/Makefile.am: Build this.
Diffstat (limited to 'gtk')
-rw-r--r--gtk/gtkrc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkrc.c b/gtk/gtkrc.c
index a70ac9b991..65c5bc3c30 100644
--- a/gtk/gtkrc.c
+++ b/gtk/gtkrc.c
@@ -348,7 +348,7 @@ gtk_rc_get_im_module_path (void)
gchar *
gtk_rc_get_im_module_file (void)
{
- gchar *result = g_getenv ("GTK_IM_MODULE_FILE");
+ gchar *result = g_strdup (g_getenv ("GTK_IM_MODULE_FILE"));
if (!result)
{