* src/stdbuf.c (set_program_path): Move a declaration down into
the scope where it's used.
}
else
{
- char *path;
char tmppath[PATH_MAX + 1];
ssize_t len = readlink ("/proc/self/exe", tmppath, sizeof (tmppath) - 1);
if (len > 0)
else if ((path = getenv ("PATH")))
{
char *dir;
- path = xstrdup (path);
+ char *path = xstrdup (path);
for (dir = strtok (path, ":"); dir != NULL; dir = strtok (NULL, ":"))
{
int req = snprintf (tmppath, sizeof (tmppath), "%s/%s", dir, arg);