Re: [spice-common 8/8] Use g_getenv() instead of getenv()

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

 



On Mon, Apr 25, 2016 at 09:08:23AM +0200, Fabiano Fidêncio wrote:
> On Mon, Apr 4, 2016 at 10:21 AM, Christophe Fergeau <cfergeau@xxxxxxxxxx> wrote:
> > On Mon, Apr 04, 2016 at 10:03:39AM +0200, Fabiano Fidêncio wrote:
> >> ---
> >>  common/log.c | 4 ++--
> >>  1 file changed, 2 insertions(+), 2 deletions(-)
> >>
> >> diff --git a/common/log.c b/common/log.c
> >> index 8d47cb6..91d3181 100644
> >> --- a/common/log.c
> >> +++ b/common/log.c
> >> @@ -59,7 +59,7 @@ static GLogLevelFlags spice_log_level_to_glib(SpiceLogLevel level)
> >>  static void spice_log_set_debug_level(void)
> >>  {
> >>      if (glib_debug_level == 0) {
> >> -        char *debug_str = getenv("SPICE_DEBUG_LEVEL");
> >> +        char *debug_str = (char *)g_getenv("SPICE_DEBUG_LEVEL");
> >
> > Looks like it could be
> > const char *debug_str = g_getenv(...) ?
> 
> ACK with this change?

Sure!

Christophe

Attachment: signature.asc
Description: PGP signature

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/spice-devel

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]