From nobody Sat Jan 14 17:20:07 2023 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4NvQ5g4mnnz2sXj0; Sat, 14 Jan 2023 17:20:07 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4NvQ5g48glz3x9T; Sat, 14 Jan 2023 17:20:07 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1673716807; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=K6Vnpo4uCLqLEp/DlUQ7C07SWmyl2U1xJ7h7ZW74woc=; b=HDNafnoL6qhLu+eqz+1AfGnwgaNL4XTjQm3JpuSFS0kMIaSAGzuIBcaGIYrhDh4BvFPmHJ G3IXsyCgv4MNjzy1COo4EBBymL/AjUDDHn1bAHXFkpyjZCm8OTR4eg0V1iFrJkFVRX1s0o ovWOpngOTnnsjBmNlbJmCY7kK/1aCxouKXKctQ4+FL2iWAYkh5XDeTEbXBWAJls2NofPoN +Ff+hdKNJBnvsku4759Tz+tKws5euxPQaJXTzIJkwLJiMBOCta3AjGZQRWABt1X8YLzeSb SBISWnAJWgWo82afXxCaJCWhS9b4x5vfihPCz/O1guSnq5ZtOdTh78Ic6d5wCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1673716807; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=K6Vnpo4uCLqLEp/DlUQ7C07SWmyl2U1xJ7h7ZW74woc=; b=I7x2oROjrHn6rgdLBVhO2LpSxrd+ygyFpDkoGo2MmnfFWjUALBAe9q0032IFRg2/zHfPRF r6y1txMYwC9zWSCrNEBLNC8LpGkv7WDdBHR6BKLLYCEA+NmK4akcQzir9U61QMhwTc8dpO tMd69cpf+Ggd6dK5NFGX69bQDR+meKN7QopknSBBDVxpezFWrj3CwPSwUKOIxFxsSmIe/Z MnTyP8vUnuVhemB2yhvmDluEAy7bLWOJtIGaS/acjsLSS328Hjd58xLXxgKkmAq0GO2BTd Dh4blQz3zfoLFdF2ACsLnV6j6xCMoY6Fpm4i5SKVrau2BM00hrfLAsne51OMJw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1673716807; a=rsa-sha256; cv=none; b=mlwJPeMYRyCl6zm6w+uIlPA02qtSRHLN1mdHfxCrIjKnbCi6zjX29DAbct/Qw/eUz5n5sO woBNlk5JoNa20w3qRDi9zpdXmn6SzX0p33YJJlk4/VBvRfcIFuDDTQ/9B4Lyy66m57Ufhd 5u/gZdYwzkbTRWTHp83BFRxNn4qjWaObBYmVsynnQAzQs0tMh7IKr7qsP1aqijhv7Mc1rx 9OdN/IRiD3nvQ5NAqNwDxYbeCPGaIOAEZfHHqDhB3SrH9UovjPC8Z1B9QoqHu+HAZ1urrp C3k4dQLBeKItQBjY7OIS0fRT3ElWOgrPYxcbMg5lc2D2YJAiV5IEfC00WYWxFw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4NvQ5g3CQGzwGR; Sat, 14 Jan 2023 17:20:07 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 30EHK7mU050188; Sat, 14 Jan 2023 17:20:07 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 30EHK77A050185; Sat, 14 Jan 2023 17:20:07 GMT (envelope-from git) Date: Sat, 14 Jan 2023 17:20:07 GMT Message-Id: <202301141720.30EHK77A050185@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: =?utf-8?Q?Dag-Erling=20Sm=C3=B8rgrav?= Subject: git: 55572cff58c4 - main - tzcode: Fully initialize structs before use. List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: des X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 55572cff58c4208a9e532356a245676b8eed6a3e Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by des: URL: https://cgit.FreeBSD.org/src/commit/?id=55572cff58c4208a9e532356a245676b8eed6a3e commit 55572cff58c4208a9e532356a245676b8eed6a3e Author: Dag-Erling Smørgrav AuthorDate: 2023-01-13 14:59:05 +0000 Commit: Dag-Erling Smørgrav CommitDate: 2023-01-14 17:16:52 +0000 tzcode: Fully initialize structs before use. Reported by: Coverity (CID 1502542, 1502548) MFC after: 1 week Sponsored by: Klara, Inc. Differential Revision: https://reviews.freebsd.org/D38037 --- contrib/tzcode/zic.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/tzcode/zic.c b/contrib/tzcode/zic.c index 64937d9b0d36..812814b70cfa 100644 --- a/contrib/tzcode/zic.c +++ b/contrib/tzcode/zic.c @@ -1842,7 +1842,7 @@ getsave(char *field, bool *isdst) static void inrule(char **fields, int nfields) { - struct rule r; + struct rule r = { 0 }; if (nfields != RULE_FIELDS) { error(_("wrong number of fields on Rule line")); @@ -1921,7 +1921,7 @@ inzsub(char **fields, int nfields, bool iscont) { register char * cp; char * cp1; - struct zone z; + struct zone z = { 0 }; int format_len; register int i_stdoff, i_rule, i_format; register int i_untilyear, i_untilmonth;