From 0a561d53fbdaf97193327cccc3258e3433f60753 Mon Sep 17 00:00:00 2001 From: Chandni Verma Date: Wed, 2 Jan 2013 07:34:25 +0530 Subject: [PATCH] Allow-clients-to-control-their-capabilities-from-being-always-advertised --- src/mcd-client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mcd-client.c b/src/mcd-client.c index 455cfd7..bd9e6db 100644 --- a/src/mcd-client.c +++ b/src/mcd-client.c @@ -224,7 +224,7 @@ parse_client_filter (GKeyFile *file, const gchar *group) key = keys[i]; space = g_strrstr (key, " "); - if (space == NULL || space[1] == '\0' || space[2] != '\0') + if (space == NULL || !(space[1] != '\0' && space[2] != '\0')) { g_warning ("Invalid key %s in client file", key); continue; -- 1.7.9.5