needless comment typo fix
This commit is contained in:
parent
d4960d974e
commit
f0b86991d7
@ -87,7 +87,8 @@ walk(char *dirname, unsigned int levels, char *argv0){
|
|||||||
while((f = readdir(dir)) != NULL){
|
while((f = readdir(dir)) != NULL){
|
||||||
if(strcmp(f->d_name, ".") == 0 || strcmp(f->d_name, "..") == 0)
|
if(strcmp(f->d_name, ".") == 0 || strcmp(f->d_name, "..") == 0)
|
||||||
continue;
|
continue;
|
||||||
/* fat pointer foolishness to avoid unnecessary reallocation */
|
/* fat pointer foolishness to avoid unnecessary reallocation; assembles
|
||||||
|
* $DIR/$FILE */
|
||||||
if((l = strlen(dirname) + 1 + strlen(f->d_name) + 1) > filename.a){
|
if((l = strlen(dirname) + 1 + strlen(f->d_name) + 1) > filename.a){
|
||||||
if((np = realloc(filename.s, l)) == NULL){
|
if((np = realloc(filename.s, l)) == NULL){
|
||||||
free(filename.s);
|
free(filename.s);
|
||||||
|
Loading…
Reference in New Issue
Block a user