[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 760a412..2d3f75d 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 :=