commit | 76e728ea514b6a83a2ae322d6305589368ee263d | [log] [tgz] |
---|---|---|
author | Gustavo F. Padovan <padovan@profusion.mobi> | Mon Dec 13 19:32:59 2010 -0200 |
committer | Jaikumar Ganesh <jaikumar@google.com> | Thu Mar 10 16:48:01 2011 -0800 |
tree | fea3ab2870c54b04bd3c2cfec5f1d4a3013ee0da | |
parent | 840441ef7f6ad330ed3e7460fbf76033082a007b [diff] |
src: use btd_error_invalid_args()
diff --git a/src/device.c b/src/device.c index 7ceac8b..0f4dc0b 100644 --- a/src/device.c +++ b/src/device.c
@@ -605,7 +605,7 @@ if (dbus_message_get_args(msg, NULL, DBUS_TYPE_STRING, &pattern, DBUS_TYPE_INVALID) == FALSE) - goto fail; + return btd_error_invalid_args(msg); if (strlen(pattern) == 0) { err = device_browse(device, conn, msg, NULL, FALSE);