From: Luiz Augusto von Dentz Date: Tue, 18 Oct 2022 21:23:50 +0000 (-0700) Subject: settings: Fix scan-build warning X-Git-Tag: accepted/tizen/unified/20230608.164325~16 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=abb4a35b867aa3d6db628fd5ed14191294e56092;p=platform%2Fupstream%2Fbluez.git 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) { ^~~ Signed-off-by: Manika Shrivastava Signed-off-by: Ayush Garg --- diff --git a/src/settings.c b/src/settings.c index 0f053000..85534f2c 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)) {