projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
81408d4
)
adaint.c (__gnat_locate_regular_file): Return immediately if file_name is empty.
author
Nicolas Setton
<setton@adacore.com>
Fri, 9 Dec 2005 17:10:46 +0000
(18:10 +0100)
committer
Arnaud Charlet
<charlet@gcc.gnu.org>
Fri, 9 Dec 2005 17:10:46 +0000
(18:10 +0100)
2005-12-05 Nicolas Setton <setton@adacore.com>
* adaint.c (__gnat_locate_regular_file): Return immediately if
file_name is empty.
From-SVN: r108283
gcc/ada/adaint.c
patch
|
blob
|
history
diff --git
a/gcc/ada/adaint.c
b/gcc/ada/adaint.c
index d73665be1dab8ecaa5417fc9bef8b6a0534060f3..7594e7ba4f89ab5e820788fa99a0fd149ec025a2 100644
(file)
--- a/
gcc/ada/adaint.c
+++ b/
gcc/ada/adaint.c
@@
-1960,6
+1960,11
@@
__gnat_locate_regular_file (char *file_name, char *path_val)
char *file_path = alloca (strlen (file_name) + 1);
int absolute;
+ /* Return immediately if file_name is empty */
+
+ if (*file_name == '\0')
+ return 0;
+
/* Remove quotes around file_name if present */
ptr = file_name;