summaryrefslogtreecommitdiffstats
path: root/common/log.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/log.c')
-rw-r--r--common/log.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/common/log.c b/common/log.c
index 9b2e9289..e8e005f0 100644
--- a/common/log.c
+++ b/common/log.c
@@ -424,9 +424,10 @@ internalInitAndAllocStruct(void)
int APP_CC
text2bool(char *s)
{
- if (0 == g_strcasecmp(s, "1") ||
- 0 == g_strcasecmp(s, "true") ||
- 0 == g_strcasecmp(s, "yes"))
+ if ( (g_atoi(s) != 0) ||
+ (0 == g_strcasecmp(s, "true")) ||
+ (0 == g_strcasecmp(s, "on")) ||
+ (0 == g_strcasecmp(s, "yes")))
{
return 1;
}