1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-29 11:41:21 +03:00

(dlerror): Don't assume that __libc_internal_tsd_get is defined. __libc_getspecific is already well-protected, so just use it directly.

This commit is contained in:
Ulrich Drepper
1998-04-23 22:45:20 +00:00
parent dc9335c14f
commit af3878dff0
5 changed files with 32 additions and 29 deletions

View File

@ -182,9 +182,13 @@ fillin_rpath (char *rpath, struct r_search_path_elem **result, const char *sep,
struct r_search_path_elem *dirp;
size_t len = strlen (cp);
/* `strsep' can pass an empty string. */
/* `strsep' can pass an empty string. This has to be
interpreted as `use the current directory'. */
if (len == 0)
continue;
{
static char curwd[2];
cp = strcpy (curwd, ".");
}
/* Remove trailing slashes. */
while (len > 1 && cp[len - 1] == '/')
@ -331,8 +335,11 @@ _dl_init_paths (const char *llp)
const char *cp = llp;
nllp = 1;
while (*cp)
if (*cp++ == ':')
++nllp;
{
if (*cp == ':' || *cp == ';')
++nllp;
++cp;
}
}
else
nllp = 0;