mirror of
git://sourceware.org/git/glibc.git
synced 2025-03-06 20:58:33 +01:00
hurd: Fix spawni returning allocation errors.
This commit is contained in:
parent
8f22e36238
commit
323f367cc4
1 changed files with 8 additions and 2 deletions
|
@ -787,12 +787,18 @@ retry:
|
|||
/* Relative path */
|
||||
char *cwd = __getcwd (NULL, 0);
|
||||
if (cwd == NULL)
|
||||
goto out;
|
||||
{
|
||||
err = errno;
|
||||
goto out;
|
||||
}
|
||||
|
||||
res = __asprintf (&concat_name, "%s/%s", cwd, relpath);
|
||||
free (cwd);
|
||||
if (res == -1)
|
||||
goto out;
|
||||
{
|
||||
err = errno;
|
||||
goto out;
|
||||
}
|
||||
|
||||
abspath = concat_name;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue