diff options
author | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-02-09 19:48:40 +0000 |
---|---|---|
committer | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-02-09 19:48:40 +0000 |
commit | 2e3ecf6495da654a023679686fd01610339bc275 (patch) | |
tree | 3df4adbb3fea344d32c5bfd65c0a9c82d0297d95 /gcc/gcc.c | |
parent | 79f46bd3e815f59586cbe1c437a119650e75c924 (diff) | |
download | gcc-2e3ecf6495da654a023679686fd01610339bc275.tar.gz |
* gcc.c (convert_filename): Handle null filename argument.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@25115 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/gcc.c')
-rw-r--r-- | gcc/gcc.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gcc/gcc.c b/gcc/gcc.c index 18faad0e641..d269395dc98 100644 --- a/gcc/gcc.c +++ b/gcc/gcc.c @@ -2393,7 +2393,12 @@ convert_filename (name, do_exe) int do_exe; { int i; - int len = strlen (name); + int len; + + if (name == NULL) + return NULL; + + len = strlen (name); #ifdef HAVE_OBJECT_SUFFIX /* Convert x.o to x.obj if OBJECT_SUFFIX is ".obj". */ |