Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp220185rwi; Tue, 18 Oct 2022 16:46:49 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7qn86YTA+emP3qWZgjnPKFTpVn5mNy7CoehPAA5cCqtJVjdi0YqnWq30CSexlixfHBQsk/ X-Received: by 2002:a05:6402:440d:b0:450:de54:3fcf with SMTP id y13-20020a056402440d00b00450de543fcfmr4705030eda.312.1666136809665; Tue, 18 Oct 2022 16:46:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666136809; cv=none; d=google.com; s=arc-20160816; b=U7Iqhtm1/4/Dngo7VSBenyG/zZW0l46D5y7TOi1YMx89WSOlhERZJ787YWD0LKQBEY cj8ISnxckziPuJJlWV3nhZD9BLA0EIpzFk6cVP+J8tvwczcjfgCHnGganlEU1BDxGHuk o6uZG+bQwNhsSdkYEm0KXHFYqpwvAvC9G/LzruLDIX43z343nk1DE2yEc14OZk33TnTW KffSRG/RaJPa7P+5GAGMbg5seBk5VRBogBL7W9nR4Jj7j5QAoX0rWJfYc50tKYmG9/fS XUjFie5YSNWCgVw39CTibFKPF+3cAeOgWq8WNMuFLr6g0nr2Zaop/gOyyFtu5iUN6dJF Cnlw== 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=Yn+lyRGjXxrvcAwEqz4uOTnz2lVcU7+CcNx3SRSEC3NHg/KYwr0QWHG1dbFiLzRT+0 +O5/dyL9RD+Q4j8ZPJunVYm94GEZdMVrK21I9OCpEpScmhyuY9Jcfx6wVDmeU5RKzB/m 56+3gQLTTIYUgrKZO8VDoxNHTlrUERxhifPgnbGCyJWgXFJtBRe2XPc1KmfHJ/J72QMm qISKyCfjViwtNOTUj+lfPQtVa6SvzXtfgvCofwdtwezi/yrKx+peHtMWY13Aee8F8d1y YKQLVj40A4YoEKdUneHdjV803fap4UCFDa+WR+X5QzcjQnaUDwAnwx6ggzuQAnBG0oCR aENQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=cdfG4UHW; 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 t4-20020a056402020400b00458b42ff246si11204154edv.236.2022.10.18.16.46.11; Tue, 18 Oct 2022 16:46:49 -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=cdfG4UHW; 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 S229456AbiJRXqH (ORCPT + 99 others); Tue, 18 Oct 2022 19:46:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52190 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229454AbiJRXqG (ORCPT ); Tue, 18 Oct 2022 19:46:06 -0400 Received: from mail-pl1-x633.google.com (mail-pl1-x633.google.com [IPv6:2607:f8b0:4864:20::633]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D3D92CD5C3 for ; Tue, 18 Oct 2022 16:46:05 -0700 (PDT) Received: by mail-pl1-x633.google.com with SMTP id z20so15299267plb.10 for ; Tue, 18 Oct 2022 16:46:05 -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=cdfG4UHWshMEFMShafTRZy6qaGTTxzEPWjmr7POBYXhJkvgnS7TUdH3t9So1JARWX9 qzOhebTxpC8q4M//NTRoN+7FcHvzrLHp5uukVdrYhEPHJdE7/htz5brkiC//Ux22zmvW G7q9NciSUdXNtoR+HnFUarPasHt0c3FmZacsCZR/6t4/GSOo7pUan1SyEiSNHcz2hwnq rzLPsycjwO+elC70HAsMmV3KBmv6yJVHQn9dKZaK0AowgbmcPHHO5hAi7pex/phAS6GO rZwPkf+Gxjen9t6nUza9IM3XrgI3dZ7JJTlX1lqfjNnuvdcd5gTVt8Q9Yq4iR6UuI2Bh +W3A== 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=kfsKElqwZaEs6LlHSm0xn8rpbhQncjPridUMcqGL6ELx91++SXYKoIMYq0nDdRmsif /JLRL6iG1pHhBi6peJGbLw1ko9DyNySziez28ydL0bio8U7OglfTjrRgHeQSDoghaid0 R0n38Kbfqi8DS6456O8WfkGWanDlTxZjNaYQlHHUUbzXthvUOSEsIu8FUJVY7gdumix5 4WdUWTdXTNmeljjkW+FiZvGlfHoLnApFCeyiWgpiJecK0j9sz8LAzHTtbN2SVlIsJs3T dgjfMyD8S+dYk0EfY0K2Z8qZuuKYh813fwlp3f87k38UfRfJM8mf5rjBHEMkcfGlugag XNPw== X-Gm-Message-State: ACrzQf3UhX0p4oI5IjnqblLT8Efz1t+y1ctVoaSVQtqPs7Bs6qzTHU/1 UJkdV3rcBtAbxkykEmxKiDhRHsRMdN4= X-Received: by 2002:a17:902:e982:b0:17f:ca1f:aa44 with SMTP id f2-20020a170902e98200b0017fca1faa44mr5477067plb.76.1666136764650; Tue, 18 Oct 2022 16:46:04 -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 ik3-20020a170902ab0300b00170d34cf7f3sm9137783plb.257.2022.10.18.16.46.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 Oct 2022 16:46:02 -0700 (PDT) From: Luiz Augusto von Dentz To: linux-bluetooth@vger.kernel.org Subject: [PATCH BlueZ v2 1/3] settings: Fix scan-build warning Date: Tue, 18 Oct 2022 16:45:58 -0700 Message-Id: <20221018234600.3990980-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