diff options
author | Mumit Khan <khan@xraylith.wisc.edu> | 1999-02-09 19:48:40 +0000 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 1999-02-09 12:48:40 -0700 |
commit | 87e690e264b71811e8cf279396cb2c8342af410a (patch) | |
tree | 3df4adbb3fea344d32c5bfd65c0a9c82d0297d95 /gcc/gcc.c | |
parent | 09ed0f70df0fff76c72c37fb79b61dc35b1c23a9 (diff) | |
download | gcc-87e690e264b71811e8cf279396cb2c8342af410a.zip gcc-87e690e264b71811e8cf279396cb2c8342af410a.tar.gz gcc-87e690e264b71811e8cf279396cb2c8342af410a.tar.bz2 |
* gcc.c (convert_filename): Handle null filename argument.
From-SVN: r25115
Diffstat (limited to 'gcc/gcc.c')
-rw-r--r-- | gcc/gcc.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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". */ |