Fix error passing to bt_io_get

This commit is contained in:
Johan Hedberg 2009-07-10 19:16:52 +03:00
parent 7133067fe8
commit 6429c3188c

View File

@ -187,7 +187,7 @@ static void confirm_cb(GIOChannel *io, gpointer user_data)
struct io_data *data = user_data;
GError *err = NULL;
if (!bt_io_get(io, data->type, NULL, BT_IO_OPT_DEST, addr,
if (!bt_io_get(io, data->type, &err, BT_IO_OPT_DEST, addr,
BT_IO_OPT_INVALID)) {
printf("bt_io_get(OPT_DEST): %s\n", err->message);
g_clear_error(&err);