From 87e690e264b71811e8cf279396cb2c8342af410a Mon Sep 17 00:00:00 2001 From: Mumit Khan Date: Tue, 9 Feb 1999 19:48:40 +0000 Subject: * gcc.c (convert_filename): Handle null filename argument. From-SVN: r25115 --- gcc/ChangeLog | 4 ++++ gcc/gcc.c | 7 ++++++- 2 files changed, 10 insertions(+), 1 deletion(-) (limited to 'gcc') 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 + + * gcc.c (convert_filename): Handle null filename argument. + Wed Feb 10 15:46:10 1999 Michael Hayes * config/c4x/c4x.md (*movhf_noclobber, *movhi_noclobber): Use diff --git a/gcc/gcc.c b/gcc/gcc.c index 18faad0..d269395 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". */ -- cgit v1.1