projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bd8c4b1
)
(choose_temp_base): Don't dump core if TMPDIR is empty.
author
Richard Kenner
<kenner@gcc.gnu.org>
Tue, 10 Dec 1996 22:04:20 +0000
(17:04 -0500)
committer
Richard Kenner
<kenner@gcc.gnu.org>
Tue, 10 Dec 1996 22:04:20 +0000
(17:04 -0500)
From-SVN: r13263
gcc/choose-temp.c
patch
|
blob
|
history
diff --git
a/gcc/choose-temp.c
b/gcc/choose-temp.c
index 2f35c4701db062b016a5b6f7a08ba3a3db25496b..798de4822a58cf4ee4251d8116998e4cbf171318 100644
(file)
--- a/
gcc/choose-temp.c
+++ b/
gcc/choose-temp.c
@@
-125,14
+125,13
@@
choose_temp_base ()
#endif
len = strlen (base);
- if (len == 0)
- abort ();
temp_filename = xmalloc (len + 1 /*DIR_SEPARATOR*/
+ strlen (TEMP_FILE) + 1);
strcpy (temp_filename, base);
#ifndef MPW
- if (temp_filename[len-1] != '/'
+ if (len != 0
+ && temp_filename[len-1] != '/'
&& temp_filename[len-1] != DIR_SEPARATOR)
temp_filename[len++] = DIR_SEPARATOR;
#else /* MPW */