ls: fix segfault-if-standalone-shell, add big fat comment.

This commit is contained in:
Denis Vlasenko
2007-03-19 20:59:20 +00:00
parent 6111a8f2e7
commit 97fd6d81b4
2 changed files with 4 additions and 3 deletions

View File

@ -66,9 +66,9 @@ char get_header_ar(archive_handle_t *archive_handle)
/* long filenames have '/' as the first character */
if (ar.formatted.name[0] == '/') {
#if ENABLE_FEATURE_AR_LONG_FILENAMES
unsigned long_offset;
#if ENABLE_FEATURE_AR_LONG_FILENAMES
if (ar.formatted.name[1] == '/') {
/* If the second char is a '/' then this entries data section
* stores long filename for multiple entries, they are stored