summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOndrej Holy <oholy@redhat.com>2016-01-05 17:33:01 +0100
committerOndrej Holy <oholy@redhat.com>2016-01-06 09:03:48 +0100
commit7d0358706fe1aa02d7e60f8d602a7c760dd47450 (patch)
treefe1598269150ee0a266939df2a3e821852217bac
parent12bd9067f9352c36f92a2e66f45abbfae6d621f3 (diff)
downloadgvfs-7d0358706fe1aa02d7e60f8d602a7c760dd47450.tar.gz
http: Fix log level comparation
g_ascii_strcasecmp doesn't return boolean and thus the code needs fixes. https://bugzilla.gnome.org/show_bug.cgi?id=740660
-rw-r--r--daemon/gvfsbackendhttp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/daemon/gvfsbackendhttp.c b/daemon/gvfsbackendhttp.c
index 347fd0d9..317c8ed6 100644
--- a/daemon/gvfsbackendhttp.c
+++ b/daemon/gvfsbackendhttp.c
@@ -737,10 +737,10 @@ g_vfs_backend_http_class_init (GVfsBackendHttpClass *klass)
SoupLogger *logger;
SoupLoggerLogLevel level;
- if (g_ascii_strcasecmp (debug, "all") ||
- g_ascii_strcasecmp (debug, "body"))
+ if (g_ascii_strcasecmp (debug, "all") == 0 ||
+ g_ascii_strcasecmp (debug, "body") == 0)
level = SOUP_LOGGER_LOG_BODY;
- else if (g_ascii_strcasecmp (debug, "header"))
+ else if (g_ascii_strcasecmp (debug, "header") == 0)
level = SOUP_LOGGER_LOG_HEADERS;
else
level = SOUP_LOGGER_LOG_MINIMAL;