gattrib: Fix passing NULL to memcpy
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Tue, 21 Dec 2021 20:48:31 +0000 (12:48 -0800)
committerAyush Garg <ayush.garg@samsung.com>
Fri, 11 Mar 2022 13:38:38 +0000 (19:08 +0530)
commitb992d48ce639cdd7b5bb3a0108fba4488aac5495
treecebb460399b3ac5332056b322c15ce10946b9432
parent31ea52b552ac2e8a4ba4bfc76181f41ede3bd1db
gattrib: Fix passing NULL to memcpy

This fixes the following runtime error:

  attrib/gattrib.c:198:2: runtime error: null pointer passed as
  argument 2, which is declared to never be null

Signed-off-by: Anuj Jain <anuj01.jain@samsung.com>
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
attrib/gattrib.c