mirror of
https://github.com/gcc-mirror/gcc.git
synced 2024-11-21 13:40:47 +00:00
make-relative-prefix.c (make_relative_prefix_1): Handle NULL return from strdup.
* make-relative-prefix.c (make_relative_prefix_1): Handle NULL return from strdup. From-SVN: r133482
This commit is contained in:
parent
1b24a790e0
commit
01b119402f
@ -1,3 +1,8 @@
|
||||
2008-03-24 Doug Evans <dje@google.com>
|
||||
|
||||
* make-relative-prefix.c (make_relative_prefix_1): Handle NULL
|
||||
return from strdup.
|
||||
|
||||
2008-03-12 Seongbae Park <seongbae.park@gmail.com>
|
||||
|
||||
* cplus-dem.c (malloc, realloc): Use void * instead of char *
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user