client/player: Fixes errors found by scan-build
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Wed, 22 Jun 2022 18:09:04 +0000 (11:09 -0700)
committerAyush Garg <ayush.garg@samsung.com>
Mon, 15 May 2023 09:25:54 +0000 (14:55 +0530)
commit1019084fc36163f9fa86bea5a1d91ab4d4506902
tree44ad4da2a0c1671f9552959dedb0e36b054a9a7e
parent752b9ad4664758d7a9490a626ce0b6da883c9890
client/player: Fixes errors found by scan-build

This fixes the following errors:

client/player.c:1406:44: warning: Dereference of null pointer
[core.NullDereference]
        reply = endpoint_select_config_reply(msg, p->data.iov_base,
                                                  ^~~~~~~~~~~~~~~~
client/player.c:1866:2: warning: 3rd function call argument is an
uninitialized value [core.CallAndMessage]
        iov_append(&cfg->caps, data, len);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Signed-off-by: Manika Shrivastava <manika.sh@samsung.com>
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
client/player.c