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 | |
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')
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/gcc.c | 7 |
2 files changed, 10 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 152b2bc..21ae04b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +Tue Feb 9 16:52:22 1999 Mumit Khan <khan@xraylith.wisc.edu> + + * gcc.c (convert_filename): Handle null filename argument. + Wed Feb 10 15:46:10 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz> * config/c4x/c4x.md (*movhf_noclobber, *movhi_noclobber): Use @@ -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". */ |