summaryrefslogtreecommitdiff
path: root/gcc/ada/s-os_lib.adb
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/ada/s-os_lib.adb')
-rwxr-xr-xgcc/ada/s-os_lib.adb4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/ada/s-os_lib.adb b/gcc/ada/s-os_lib.adb
index 532fca41d0f..8edc7c93a9b 100755
--- a/gcc/ada/s-os_lib.adb
+++ b/gcc/ada/s-os_lib.adb
@@ -1926,8 +1926,10 @@ package body System.OS_Lib is
if On_Windows then
declare
- Index : Natural := Path_Buffer'First;
+ Index : Natural;
+
begin
+ Index := Path_Buffer'First;
for Current in Path_Buffer'First .. End_Path loop
if Path_Buffer (Current) /= '"' then
Path_Buffer (Index) := Path_Buffer (Current);