[PATCH 4/4] Fixed comparison with "AutoConnect" in service

Pekka.Pessi at nokia.com Pekka.Pessi at nokia.com
Mon Jan 17 13:45:45 PST 2011


From: Pekka Pessi <Pekka.Pessi at nokia.com>

---
 src/service.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/service.c b/src/service.c
index 2476cbc..0ea1223 100644
--- a/src/service.c
+++ b/src/service.c
@@ -1866,7 +1866,7 @@ static DBusMessage *set_property(DBusConnection *conn,
 
 	type = dbus_message_iter_get_arg_type(&value);
 
-	if (g_str_has_prefix(name, "AutoConnect") == TRUE) {
+	if (g_str_equal(name, "AutoConnect") == TRUE) {
 		connman_bool_t autoconnect;
 
 		if (type != DBUS_TYPE_BOOLEAN)
-- 
1.7.1




More information about the connman mailing list