--- src/agent.c | 5 ----- 1 files changed, 0 insertions(+), 5 deletions(-) diff --git a/src/agent.c b/src/agent.c index c628024..579b03e 100644 --- a/src/agent.c +++ b/src/agent.c @@ -272,7 +272,6 @@ static void simple_agent_reply(DBusPendingCall *call, void *user_data) goto done; } - dbus_error_init(&err); if (!dbus_message_get_args(message, &err, DBUS_TYPE_INVALID)) { error("Wrong reply signature: %s", err.message); cb(agent, &err, req->user_data); @@ -373,7 +372,6 @@ static void pincode_reply(DBusPendingCall *call, void *user_data) goto done; } - dbus_error_init(&err); if (!dbus_message_get_args(message, &err, DBUS_TYPE_STRING, &pin, DBUS_TYPE_INVALID)) { @@ -385,7 +383,6 @@ static void pincode_reply(DBusPendingCall *call, void *user_data) len = strlen(pin); - dbus_error_init(&err); if (len > 16 || len < 1) { error("Invalid PIN length (%zu) from agent", len); dbus_set_error_const(&err, "org.bluez.Error.InvalidArgs", @@ -538,7 +535,6 @@ static void passkey_reply(DBusPendingCall *call, void *user_data) goto done; } - dbus_error_init(&err); if (!dbus_message_get_args(message, &err, DBUS_TYPE_UINT32, &passkey, DBUS_TYPE_INVALID)) { @@ -733,7 +729,6 @@ static void display_pincode_reply(DBusPendingCall *call, void *user_data) goto done; } - dbus_error_init(&err); if (!dbus_message_get_args(message, &err, DBUS_TYPE_INVALID)) { error("Wrong reply signature: %s", err.message); cb(agent, &err, req->user_data); -- 1.7.4.1 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html