From 665bf3512b105c4fb0393b7af0c42caff3992304 Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Sat, 1 Apr 1995 08:25:16 -0500 Subject: (print_multilib_info): Don't use LAST_PATH if not set. From-SVN: r9281 --- gcc/gcc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gcc') 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; -- cgit v1.1