[Spice-commits] gtk/spice-util.c
Daniel P. Berrange
berrange at kemper.freedesktop.org
Thu Apr 26 03:28:28 PDT 2012
gtk/spice-util.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
New commits:
commit e82757283f760cb2d0d99b4517bc1747cb6e92f3
Author: Daniel P. Berrange <berrange at redhat.com>
Date: Thu Apr 26 10:07:33 2012 +0100
Replace getenv/setenv with g_getenv/g_setenv for Win32 portability
diff --git a/gtk/spice-util.c b/gtk/spice-util.c
index fdea362..62c6549 100644
--- a/gtk/spice-util.c
+++ b/gtk/spice-util.c
@@ -49,12 +49,12 @@ void spice_util_set_debug(gboolean enabled)
{
#if GLIB_CHECK_VERSION(2, 31, 0)
if (enabled) {
- gchar *doms = getenv("G_MESSAGES_DEBUG");
+ gchar *doms = g_getenv("G_MESSAGES_DEBUG");
if (!doms) {
- setenv("G_MESSAGES_DEBUG", G_LOG_DOMAIN, 1);
+ g_setenv("G_MESSAGES_DEBUG", G_LOG_DOMAIN, 1);
} else if (!strstr(doms, G_LOG_DOMAIN)) {
gchar *newdoms = g_strdup_printf("%s %s", doms, G_LOG_DOMAIN);
- setenv("G_MESSAGES_DEBUG", newdoms, 1);
+ g_setenv("G_MESSAGES_DEBUG", newdoms, 1);
g_free(newdoms);
}
}
More information about the Spice-commits
mailing list