diff options
author | proski <proski@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2000-08-22 15:47:57 +0000 |
---|---|---|
committer | proski <proski@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2000-08-22 15:47:57 +0000 |
commit | 37708648c4aca0a61fae857753ba39c5a50594c7 (patch) | |
tree | cf81aa8ed3d16485a8430c6edc6a85f21ac52212 | |
parent | c22ced0d57e12fc618290378f3bda4244a635035 (diff) | |
download | busybox-w32-37708648c4aca0a61fae857753ba39c5a50594c7.tar.gz busybox-w32-37708648c4aca0a61fae857753ba39c5a50594c7.tar.bz2 busybox-w32-37708648c4aca0a61fae857753ba39c5a50594c7.zip |
Fixed a warning about a label not being used
git-svn-id: svn://busybox.net/trunk/busybox@981 69ca8d6d-28ef-0310-b511-8ec308f3f277
-rw-r--r-- | coreutils/ls.c | 8 | ||||
-rw-r--r-- | ls.c | 8 |
2 files changed, 8 insertions, 8 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); |
@@ -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); |