]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[Ada] Potential read of uninitialized variable in exp_dist.adb
authorArnaud Charlet <charlet@adacore.com>
Wed, 11 Nov 2020 16:32:34 +0000 (11:32 -0500)
committerPierre-Marie de Rodat <derodat@adacore.com>
Mon, 30 Nov 2020 14:16:18 +0000 (09:16 -0500)
gcc/ada/

* exp_dist.adb (RCI_Cache): Initialize.

gcc/ada/exp_dist.adb

index 760a4123216c14a0625271a3e3d1f4939c9d244a..2d3f75d51e86ea51a32c94f0d3229a3b693e77e0 100644 (file)
@@ -902,7 +902,7 @@ package body Exp_Dist is
    -- Local variables and structures --
    ------------------------------------
 
-   RCI_Cache : Node_Id;
+   RCI_Cache : Node_Id := Empty;
    --  Needs comments ???
 
    Output_From_Constrained : constant array (Boolean) of Name_Id :=