public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r13-608] [Ada] Make sure output variable is always initialized
@ 2022-05-18  8:44 Pierre-Marie de Rodat
  0 siblings, 0 replies; only message in thread
From: Pierre-Marie de Rodat @ 2022-05-18  8:44 UTC (permalink / raw)
  To: gcc-cvs

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);


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-05-18  8:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-18  8:44 [gcc r13-608] [Ada] Make sure output variable is always initialized Pierre-Marie de Rodat

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).