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.
This commit is contained in:
Mikel Astiz 2012-05-21 11:07:04 +02:00 committed by Marcel Holtmann
parent 65c6680728
commit 8a1b3f32de

View File

@ -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;