diff options
author | Ondrej Holy <oholy@redhat.com> | 2016-01-05 17:33:01 +0100 |
---|---|---|
committer | Ondrej Holy <oholy@redhat.com> | 2016-01-18 20:46:11 +0100 |
commit | 58b6b1b3afa4e2e193266e8e436221bf0f327515 (patch) | |
tree | f0dfdb71243c6251ae03a415ef3d87f99170bd1a | |
parent | f5d69d745350b56972a7a20c2b285eb5b3032246 (diff) | |
download | gvfs-58b6b1b3afa4e2e193266e8e436221bf0f327515.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.c | 6 |
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; |