2005-01-01 Tor Lillqvist <tml@iki.fi>
+ * glib/gutils.c: Make the g_getenv() ABI backward compatibility
+ wrapper more robust.
+
+2005-01-01 Tor Lillqvist <tml@iki.fi>
+
* glib/glib.symbols
* glib/gutils.h
* glib/gutils.c: Make also g_getenv(), g_setenv(), g_unsetenv()
2005-01-01 Tor Lillqvist <tml@iki.fi>
+ * glib/gutils.c: Make the g_getenv() ABI backward compatibility
+ wrapper more robust.
+
+2005-01-01 Tor Lillqvist <tml@iki.fi>
+
* glib/glib.symbols
* glib/gutils.h
* glib/gutils.c: Make also g_getenv(), g_setenv(), g_unsetenv()
2005-01-01 Tor Lillqvist <tml@iki.fi>
+ * glib/gutils.c: Make the g_getenv() ABI backward compatibility
+ wrapper more robust.
+
+2005-01-01 Tor Lillqvist <tml@iki.fi>
+
* glib/glib.symbols
* glib/gutils.h
* glib/gutils.c: Make also g_getenv(), g_setenv(), g_unsetenv()
2005-01-01 Tor Lillqvist <tml@iki.fi>
+ * glib/gutils.c: Make the g_getenv() ABI backward compatibility
+ wrapper more robust.
+
+2005-01-01 Tor Lillqvist <tml@iki.fi>
+
* glib/glib.symbols
* glib/gutils.h
* glib/gutils.c: Make also g_getenv(), g_setenv(), g_unsetenv()
2005-01-01 Tor Lillqvist <tml@iki.fi>
+ * glib/gutils.c: Make the g_getenv() ABI backward compatibility
+ wrapper more robust.
+
+2005-01-01 Tor Lillqvist <tml@iki.fi>
+
* glib/glib.symbols
* glib/gutils.h
* glib/gutils.c: Make also g_getenv(), g_setenv(), g_unsetenv()
{
gchar *utf8_variable = g_locale_to_utf8 (variable, -1, NULL, NULL, NULL);
const gchar *utf8_value = g_getenv_utf8 (utf8_variable);
- gchar *value = g_locale_from_utf8 (utf8_value, -1, NULL, NULL, NULL);
- GQuark quark = g_quark_from_string (value);
+ gchar *value;
+ GQuark quark;
g_free (utf8_variable);
+ if (!utf8_value)
+ return NULL;
+ value = g_locale_from_utf8 (utf8_value, -1, NULL, NULL, NULL);
+ quark = g_quark_from_string (value);
g_free (value);
return g_quark_to_string (quark);