public inbox for gcc-cvs@sourceware.org help / color / mirror / Atom feed
From: Pierre-Marie de Rodat <pmderodat@gcc.gnu.org> To: gcc-cvs@gcc.gnu.org Subject: [gcc r13-608] [Ada] Make sure output variable is always initialized Date: Wed, 18 May 2022 08:44:54 +0000 (GMT) [thread overview] Message-ID: <20220518084454.38B333857831@sourceware.org> (raw) https://gcc.gnu.org/g:df4451ca663e251e5524ebedb34bbe0cbfc45e52 commit r13-608-gdf4451ca663e251e5524ebedb34bbe0cbfc45e52 Author: Kévin Le Gouguec <legouguec@adacore.com> Date: Thu Apr 7 17:43:34 2022 +0200 [Ada] Make sure output variable is always initialized gcc/ada/ * libgnat/s-dwalin.adb (Read_Aranges_Header): Initialize output parameter in case we return early. Diff: --- gcc/ada/libgnat/s-dwalin.adb | 1 + 1 file changed, 1 insertion(+) diff --git a/gcc/ada/libgnat/s-dwalin.adb b/gcc/ada/libgnat/s-dwalin.adb index 50662ddceff..5a0a2f6bf72 100644 --- a/gcc/ada/libgnat/s-dwalin.adb +++ b/gcc/ada/libgnat/s-dwalin.adb @@ -1360,6 +1360,7 @@ package body System.Dwarf_Lines is begin Success := False; Info_Offset := 0; + Addr_Size := 0; Read_Initial_Length (C.Aranges, Unit_Length, Is64);
reply other threads:[~2022-05-18 8:44 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20220518084454.38B333857831@sourceware.org \ --to=pmderodat@gcc.gnu.org \ --cc=gcc-cvs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).