Commit: 40a90f4e98fe0f2fa2da68b99ae136947d3d5189
Parent: 31b32daf529204313be3da08e1809dc916a37864
Author: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2022-09-22 02:36:23
Tree: 59f12e7f01ea8dee298fbd82d2955d57c43f4c3c

shared/gatt-db: Fix scan-build warnings This fixes the following warnings: src/shared/gatt-db.c:1339:2: warning: Undefined or garbage value returned to caller [core.uninitialized.UndefReturn] return data.num_of_res; ^~~~~~~~~~~~~~~~~~~~~~ src/shared/gatt-db.c:725:5: warning: Access to field 'handle' results in a dereference of a null pointer service->attributes[0]->handle == handle) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Diffstat

M src/shared/gatt-db.c | 14 +++++++++- - - - -

1 files changed, 9 insertions(+), 5 deletions(-)

View Full Diff | Patch