mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2024-12-02 00:24:25 +08:00
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:
parent
65c6680728
commit
8a1b3f32de
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user