Commit e51b97be by Nicolas Setton Committed by Arnaud Charlet

adaint.c (__gnat_locate_regular_file): Return immediately if file_name is empty.

2005-12-05  Nicolas Setton  <setton@adacore.com>

	* adaint.c (__gnat_locate_regular_file): Return immediately if
	file_name is empty.

From-SVN: r108283
parent 81408d49
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment