From 8a1b3f32ded285be6059217462f9d6fcb09aae4c Mon Sep 17 00:00:00 2001 From: Mikel Astiz Date: Mon, 21 May 2012 11:07:04 +0200 Subject: [PATCH] obexd: Use constant instead of NULL variable The filename will always be NULL for capability-requesting sessions, so it doesn't make much sense to use such field. --- obexd/client/manager.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/obexd/client/manager.c b/obexd/client/manager.c index 3dd0220e7..3005fe858 100644 --- a/obexd/client/manager.c +++ b/obexd/client/manager.c @@ -510,8 +510,7 @@ static void capability_obc_session_callback(struct obc_session *session, if (err != NULL) goto fail; - pull = obc_transfer_get("x-obex/capability", NULL, data->filename, - &gerr); + pull = obc_transfer_get("x-obex/capability", NULL, NULL, &gerr); if (pull == NULL) goto fail; -- 2.47.3