diff options
author | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2022-10-18 14:23:50 -0700 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2022-10-18 14:23:50 -0700 |
commit | 9c739ba22f094496381a6bce88ed4c118ef020b9 (patch) | |
tree | 53952eb802d10334567105cad724aa5e3ef26be1 /src/settings.c | |
parent | 07fd4b948251f0613df230ca365b8440808c5a5c (diff) | |
download | bluez-9c739ba22f094496381a6bce88ed4c118ef020b9.tar.gz |
settings: Fix scan-build warning
This fixes the following warning:
src/settings.c:281:7: warning: Branch condition evaluates to a garbage
value [core.uninitialized.Branch]
if (ret) {
^~~
Diffstat (limited to 'src/settings.c')
-rw-r--r-- | src/settings.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/settings.c b/src/settings.c index 0f0530006..85534f2c7 100644 --- a/src/settings.c +++ b/src/settings.c @@ -269,6 +269,7 @@ static int gatt_db_load(struct gatt_db *db, GKeyFile *key_file, char **keys) &primary, &uuid); bt_uuid_to_string(&uuid, uuid_str, sizeof(uuid_str)); + ret = 0; } else if (g_str_equal(type, GATT_INCLUDE_UUID_STR)) { ret = load_incl(db, *handle, value, current_service); } else if (g_str_equal(type, GATT_CHARAC_UUID_STR)) { |