merge from gcc

This commit is contained in:
DJ Delorie
2008-03-24 18:06:37 +00:00
parent c5b48eacfa
commit daddbc6edd
2 changed files with 10 additions and 7 deletions

View File

@@ -292,14 +292,12 @@ make_relative_prefix_1 (const char *progname, const char *bin_prefix,
}
}
if ( resolve_links )
{
full_progname = lrealpath (progname);
if (full_progname == NULL)
return NULL;
}
if (resolve_links)
full_progname = lrealpath (progname);
else
full_progname = strdup(progname);
full_progname = strdup (progname);
if (full_progname == NULL)
return NULL;
prog_dirs = split_directories (full_progname, &prog_num);
free (full_progname);