projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c12e23c
)
[Ada] Error when closing c_stream
author
Arnaud Charlet
<charlet@adacore.com>
Thu, 27 Aug 2020 12:38:35 +0000
(08:38 -0400)
committer
Pierre-Marie de Rodat
<derodat@adacore.com>
Fri, 23 Oct 2020 08:24:51 +0000
(
04:24
-0400)
gcc/ada/
* libgnat/s-fileio.adb (Open): Fix setting of Tempfile.
gcc/ada/libgnat/s-fileio.adb
patch
|
blob
|
history
diff --git
a/gcc/ada/libgnat/s-fileio.adb
b/gcc/ada/libgnat/s-fileio.adb
index b6377e3827d15dc67acc2f6397a88d705976ebc7..c574487b43e66400bc84eba954cc96d2d5a49677 100644
(file)
--- a/
gcc/ada/libgnat/s-fileio.adb
+++ b/
gcc/ada/libgnat/s-fileio.adb
@@
-800,9
+800,9
@@
package body System.File_IO is
Text_Encoding : Content_Encoding;
- Tempfile : constant Boolean := Name = "";
+ Tempfile : constant Boolean := Name = ""
and Stream = NULL_Stream
;
-- Indicates temporary file case, which is indicated by an empty file
- -- name.
+ -- name
and no specified Stream
.
Namelen : constant Integer := max_path_len;
-- Length required for file name, not including final ASCII.NUL.