Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.busybox.net/busybox.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPavel Roskin <proski@gnu.org>2000-08-22 19:47:57 +0400
committerPavel Roskin <proski@gnu.org>2000-08-22 19:47:57 +0400
commit3a0f4baf2fda25aafdd43589265980c5dbb19fc1 (patch)
treecf81aa8ed3d16485a8430c6edc6a85f21ac52212 /coreutils
parent8237add8d0d8838d880a65bf6d86ddf996671eb3 (diff)
Fixed a warning about a label not being used
Diffstat (limited to 'coreutils')
-rw-r--r--coreutils/ls.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/coreutils/ls.c b/coreutils/ls.c
index 20373eaaa..207c61763 100644
--- a/coreutils/ls.c
+++ b/coreutils/ls.c
@@ -483,8 +483,10 @@ static int list_item(const char *name)
lstat(fullname, &cur->dstat); /* get file stat info into node */
dnp[ni++]= cur; /* save pointer to node in array */
#else
- if (lstat(fullname, &info))
- goto direrr; /* (shouldn't fail) */
+ if (lstat(fullname, &info)) {
+ closedir(dir);
+ goto listerr; /* (shouldn't fail) */
+ }
list_single(entry->d_name, &info, fullname);
#endif
}
@@ -504,8 +506,6 @@ static int list_item(const char *name)
return 0;
- direrr:
- closedir(dir);
listerr:
newline();
perror(name);