diff options
author | Pavel Roskin <proski@gnu.org> | 2000-08-22 15:47:57 +0000 |
---|---|---|
committer | Pavel Roskin <proski@gnu.org> | 2000-08-22 15:47:57 +0000 |
commit | 3a0f4baf2fda25aafdd43589265980c5dbb19fc1 (patch) | |
tree | cf81aa8ed3d16485a8430c6edc6a85f21ac52212 /coreutils | |
parent | 8237add8d0d8838d880a65bf6d86ddf996671eb3 (diff) | |
download | busybox-w32-3a0f4baf2fda25aafdd43589265980c5dbb19fc1.tar.gz busybox-w32-3a0f4baf2fda25aafdd43589265980c5dbb19fc1.tar.bz2 busybox-w32-3a0f4baf2fda25aafdd43589265980c5dbb19fc1.zip |
Fixed a warning about a label not being used
Diffstat (limited to 'coreutils')
-rw-r--r-- | coreutils/ls.c | 8 |
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) | |||
483 | lstat(fullname, &cur->dstat); /* get file stat info into node */ | 483 | lstat(fullname, &cur->dstat); /* get file stat info into node */ |
484 | dnp[ni++]= cur; /* save pointer to node in array */ | 484 | dnp[ni++]= cur; /* save pointer to node in array */ |
485 | #else | 485 | #else |
486 | if (lstat(fullname, &info)) | 486 | if (lstat(fullname, &info)) { |
487 | goto direrr; /* (shouldn't fail) */ | 487 | closedir(dir); |
488 | goto listerr; /* (shouldn't fail) */ | ||
489 | } | ||
488 | list_single(entry->d_name, &info, fullname); | 490 | list_single(entry->d_name, &info, fullname); |
489 | #endif | 491 | #endif |
490 | } | 492 | } |
@@ -504,8 +506,6 @@ static int list_item(const char *name) | |||
504 | 506 | ||
505 | return 0; | 507 | return 0; |
506 | 508 | ||
507 | direrr: | ||
508 | closedir(dir); | ||
509 | listerr: | 509 | listerr: |
510 | newline(); | 510 | newline(); |
511 | perror(name); | 511 | perror(name); |