aboutsummaryrefslogtreecommitdiff
path: root/gcc/gcc.c
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1995-04-01 08:25:16 -0500
committerRichard Kenner <kenner@gcc.gnu.org>1995-04-01 08:25:16 -0500
commit665bf3512b105c4fb0393b7af0c42caff3992304 (patch)
tree0c3526f88241fdf34efd78b9c91c522c777a2125 /gcc/gcc.c
parentd0d99d5f3e9c88f4e692cd013317b01674398cc0 (diff)
downloadgcc-665bf3512b105c4fb0393b7af0c42caff3992304.zip
gcc-665bf3512b105c4fb0393b7af0c42caff3992304.tar.gz
gcc-665bf3512b105c4fb0393b7af0c42caff3992304.tar.bz2
(print_multilib_info): Don't use LAST_PATH if not set.
From-SVN: r9281
Diffstat (limited to 'gcc/gcc.c')
-rw-r--r--gcc/gcc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/gcc.c b/gcc/gcc.c
index 4883125..c134dcb 100644
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -5202,7 +5202,7 @@ static void
print_multilib_info ()
{
char *p = multilib_select;
- char *last_path, *this_path;
+ char *last_path = 0, *this_path;
int skip, use_arg;
int last_path_len = 0;
@@ -5225,7 +5225,7 @@ print_multilib_info ()
}
/* If this is a duplicate, skip it. */
- skip = (p - this_path == last_path_len
+ skip = (last_path != 0 && p - this_path == last_path_len
&& ! strncmp (last_path, this_path, last_path_len));
last_path = this_path;