[Xfce4-commits] <xfce4-panel:master> Start debugging on any other value then NULL.
Nick Schermer
noreply at xfce.org
Sun Jun 13 21:26:01 CEST 2010
Updating branch refs/heads/master
to 5a992c1a2f14b78a9c566d18385ad5634a6b317d (commit)
from 949b9cbcda6febc8b6f7b9c5ed98dd3bd664267c (commit)
commit 5a992c1a2f14b78a9c566d18385ad5634a6b317d
Author: Nick Schermer <nick at xfce.org>
Date: Sun Jun 13 18:15:50 2010 +0200
Start debugging on any other value then NULL.
common/panel-debug.c | 2 +-
libxfce4panel/xfce-panel-macros-46.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/common/panel-debug.c b/common/panel-debug.c
index ebf26ad..31a62f2 100644
--- a/common/panel-debug.c
+++ b/common/panel-debug.c
@@ -59,7 +59,7 @@ panel_debug (const gchar *domain,
if (g_once_init_enter (&level__volatile))
{
value = g_getenv ("PANEL_DEBUG");
- if (G_UNLIKELY (value != NULL && *value == '1'))
+ if (G_UNLIKELY (value != NULL))
level = DEBUG_LEVEL_ENABLED;
else
level = DEBUG_LEVEL_NONE;
diff --git a/libxfce4panel/xfce-panel-macros-46.h b/libxfce4panel/xfce-panel-macros-46.h
index a75f3b8..47e25f6 100644
--- a/libxfce4panel/xfce-panel-macros-46.h
+++ b/libxfce4panel/xfce-panel-macros-46.h
@@ -549,7 +549,7 @@ enum /*< skip >*/
gchar *base_name; \
\
value = g_getenv ("PANEL_DEBUG"); \
- if (value != NULL && *value == '1') \
+ if (G_UNLIKELY (value != NULL)) \
{ \
_xpp_debug = TRUE; \
\
More information about the Xfce4-commits
mailing list