Commit 665bf351 by Richard Kenner

(print_multilib_info): Don't use LAST_PATH if not set.

From-SVN: r9281
parent d0d99d5f
...@@ -5202,7 +5202,7 @@ static void ...@@ -5202,7 +5202,7 @@ static void
print_multilib_info () print_multilib_info ()
{ {
char *p = multilib_select; char *p = multilib_select;
char *last_path, *this_path; char *last_path = 0, *this_path;
int skip, use_arg; int skip, use_arg;
int last_path_len = 0; int last_path_len = 0;
...@@ -5225,7 +5225,7 @@ print_multilib_info () ...@@ -5225,7 +5225,7 @@ print_multilib_info ()
} }
/* If this is a duplicate, skip it. */ /* 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)); && ! strncmp (last_path, this_path, last_path_len));
last_path = this_path; last_path = this_path;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment