Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp84069rwi; Tue, 18 Oct 2022 14:29:34 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7oOoIcFvpnKO/+A6aYzyweuLMteYiaKgvaUWSVzIzjzz1/qwVDshpEAKQFcgn65vXULAqZ X-Received: by 2002:a17:90b:4c89:b0:20d:457c:5068 with SMTP id my9-20020a17090b4c8900b0020d457c5068mr40207116pjb.208.1666128574615; Tue, 18 Oct 2022 14:29:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666128574; cv=none; d=google.com; s=arc-20160816; b=VeviK2QxXBOxsF4ZxISw4IPRuFgYxrqHf/+GDzQn+ERaJyq0yIsoMf4fWty87/IgKb wbD3hkeX2Ent9aojQTdkyw5LL5UQ2Q2fR320THAaXd7XVrksiRuQGpeSLQUj7jjmvqKj XQEMALQZSWyYGEcQIn7xvbZJxRkIlL/XgLw1YxX/7kGuocJ57phD0ds4S4WUg/g69HI/ Spm9mCkov85wB6Gw2K59ZQOfWdPWW2U0ATHsqHFJVuHg03Ss6/0AZsOtcwgG2JuXHcoa x25pnmvchB5g07xFUVzgb/GVfgvyRS9b5018vY9gEByoQvqcUQ8DyHOBM7Mab67dgChl ELaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:to:from:dkim-signature; bh=3TjJI4Z5mKo0WkCCYEBgGhDf/q6wdCtS3DVL2EEYvvw=; b=mwuIf1kht7RSU6rTLrycL9EDzwJIrhBQIttWMAO3PnHKaencTk+8FQQ8xtwhP+NOTY kHk8dTKXW8c9FkyQ7VeaIgC7IAPHFOA2yXEIxRG6dbYO78oQzCl9kRea7JdxGCm77vcg pHT00X1KOfDohvkwUhLaojk+12+CQs55tuEVfqCimd1m4GUw/1UAq4EPoEcmiPTjEqef 8MaA0+u5J3PqI1825Hr/1eEYDOnPHaHFYjHUt9CimMGpcrQ7sJdMCdtIdGqd4HyA2Wjr 39SMWeA4Br3zcdf39cN7Xo0Hrrtf0ROHrvJzVbXBdSLw9MMsNi5GVIMz0gmlbpx46Gqc qJQQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=QbzCJbou; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t64-20020a635f43000000b0044fb0824e52si17286887pgb.171.2022.10.18.14.29.03; Tue, 18 Oct 2022 14:29:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=QbzCJbou; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229982AbiJRV2F (ORCPT + 99 others); Tue, 18 Oct 2022 17:28:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49098 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229956AbiJRV2E (ORCPT ); Tue, 18 Oct 2022 17:28:04 -0400 Received: from mail-pf1-x432.google.com (mail-pf1-x432.google.com [IPv6:2607:f8b0:4864:20::432]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6F401B56E9 for ; Tue, 18 Oct 2022 14:28:03 -0700 (PDT) Received: by mail-pf1-x432.google.com with SMTP id y1so15353082pfr.3 for ; Tue, 18 Oct 2022 14:28:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date:message-id:reply-to; bh=3TjJI4Z5mKo0WkCCYEBgGhDf/q6wdCtS3DVL2EEYvvw=; b=QbzCJbou7ORjRu05AFnVOQgOXfOL0TXO7Rimh4lL7MX9d0Us1gniOiDraWEtAxZza1 g33BT3Js+getxIZYU2BvvUHsHQTFwhlx3B5Di9YWmVpxwfLZ4Rm+G3xz4wn4rfyDHz68 yEm7m23OcmCXi6kMaAI2iQZ0HfX10TOiRqQBL8jkN5lY24dPC5fPC0WNBuC6AGgEe54w 7Z089ZRsUfLo4hU0sN10qyx1bL6JfYcnAHISFo8aWmwzrfDW0oVvlujztQPXwuSD24VC 8lkn53alGngSdOdIci/q/4Hr5pzOPQSMIGy68EDkdG+NKzUgKDsyDchK2m+641tR46IN wvAQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=3TjJI4Z5mKo0WkCCYEBgGhDf/q6wdCtS3DVL2EEYvvw=; b=Cc+JNwnSrb1cAI7n9zZpbfOOh+QgMPCX8GMz4CtaESyuYhxiqRdZLICnUWNVg7oV4I tCe8L2zk7w/MWL8mEGxnK/rx5j8q40MpNUfZWKlyxcapgiiTJOpkbN4y1ZwOkB8OTimz 29NK/JAsP9Z6+dZH+Orv+v/RhvqKYrdQDJQ6f0zT3i1imskxUkeo0byMJBEmwq8S2p8P gk75rZDSlXrx83DDYjpnTawS08OWk1g7gZ6pjDx29I3GXNhSKqICcHJFBJsoSPNuugR6 H3NsF7ycoupbzfLXVv779bNnB8GzOEkNHfBzTvUrsHEZXbMwBLPV/zaAA8kMdBft/3Wt jUfQ== X-Gm-Message-State: ACrzQf3bJ8YQgKXZ66rWDlVV55SF6cmKHMKmkQ1z7H2TvrDuzLEF+fWC zodoSSO3BnRrCbYJQA09lC5rQZifuKg= X-Received: by 2002:a65:42c7:0:b0:462:7158:c863 with SMTP id l7-20020a6542c7000000b004627158c863mr4396553pgp.590.1666128482380; Tue, 18 Oct 2022 14:28:02 -0700 (PDT) Received: from lvondent-mobl4.. (c-71-56-157-77.hsd1.or.comcast.net. [71.56.157.77]) by smtp.gmail.com with ESMTPSA id n9-20020a170903110900b0017f7c4e260fsm9230653plh.150.2022.10.18.14.28.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 Oct 2022 14:28:01 -0700 (PDT) From: Luiz Augusto von Dentz To: linux-bluetooth@vger.kernel.org Subject: [PATCH BlueZ 1/2] settings: Fix scan-build warning Date: Tue, 18 Oct 2022 14:27:59 -0700 Message-Id: <20221018212800.3967256-1-luiz.dentz@gmail.com> X-Mailer: git-send-email 2.37.3 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org From: Luiz Augusto von Dentz This fixes the following warning: src/settings.c:281:7: warning: Branch condition evaluates to a garbage value [core.uninitialized.Branch] if (ret) { ^~~ --- src/settings.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/settings.c b/src/settings.c index 0f053000610b..85534f2c7aca 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)) { -- 2.37.3