OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
2011-01-14 Jerry DeLisle <jvdelisle@gcc.gnu.org>
[pf3gnuchains/gcc-fork.git]
/
libgfortran
/
io
/
unix.c
diff --git
a/libgfortran/io/unix.c
b/libgfortran/io/unix.c
index
a384f7b
..
e66560f
100644
(file)
--- a/
libgfortran/io/unix.c
+++ b/
libgfortran/io/unix.c
@@
-1000,6
+1000,8
@@
unit_to_fd (int unit)
int
unpack_filename (char *cstring, const char *fstring, int len)
{
+ if (fstring == NULL)
+ return 1;
len = fstrlen (fstring, len);
if (len >= PATH_MAX)
return 1;