client/gatt: Fix scan-build warning
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Fri, 23 Sep 2022 20:47:10 +0000 (13:47 -0700)
committerAyush Garg <ayush.garg@samsung.com>
Mon, 15 May 2023 09:25:55 +0000 (14:55 +0530)
commitb2d1c9b2d8d441e00c0af5221df60df7051bf375
treea5dc33ee4d801e4c525a69d41f69bed69b38c4e9
parent4e3e789a473edd75f74827399718ca570f7039cb
client/gatt: Fix scan-build warning

This fixes the following warning:

client/gatt.c:2146:2: warning: Null pointer passed to 2nd parameter
expecting 'nonnull' [core.NonNullParamChecker]
        memcpy(*dst_value + offset, src_val, src_len);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

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