[gtk-vnc] Fix constness wrt g_getenv



commit 6299d2ee90c7704ffe353327dfe7565e11e067d5
Author: Daniel P. Berrange <berrange redhat com>
Date:   Fri May 4 15:21:54 2012 +0100

    Fix constness wrt g_getenv

 src/vncutil.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/vncutil.c b/src/vncutil.c
index 0f54499..7af8365 100644
--- a/src/vncutil.c
+++ b/src/vncutil.c
@@ -32,7 +32,7 @@ void vnc_util_set_debug(gboolean enabled)
 {
 #if GLIB_CHECK_VERSION(2, 31, 0)
     if (enabled) {
-        gchar *doms = g_getenv("G_MESSAGES_DEBUG");
+        const gchar *doms = g_getenv("G_MESSAGES_DEBUG");
         if (!doms) {
             g_setenv("G_MESSAGES_DEBUG", G_LOG_DOMAIN, 1);
         } else if (!strstr(doms, G_LOG_DOMAIN)) {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]