← Commit list

dd92c77bb

Eric Andersen
Eric Andersen
2003-06-20
FAILED Duration: 83s

Subject

Don't shadow a paramater

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

libbb/find_root_device.c+3 -3
@@ -48,13 +48,13 @@ extern char *find_real_root_device_name(const char* name)
bb_perror_msg("could not open '/dev'");
else {
while((entry = readdir(dir)) != NULL) {
- const char *name = entry->d_name;
+ const char *myname = entry->d_name;
/* Must skip ".." since that is "/", and so we
* would get a false positive on ".." */
- if (name[0] == '.' && name[1] == '.' && !name[2])
+ if (myname[0] == '.' && myname[1] == '.' && !myname[2])
continue;
- fileName = concat_path_file("/dev", name);
+ fileName = concat_path_file("/dev", myname);
/* Some char devices have the same dev_t as block
* devices, so make sure this is a block device */