du: build by default; fix bug gcc discovered
This commit is contained in:
parent
f0cd09f352
commit
20512823c8
1 changed files with 1 additions and 1 deletions
|
|
@ -162,7 +162,7 @@ seen(Dir *dir)
|
|||
return 1;
|
||||
if(c->n == c->max){
|
||||
c->cache = realloc(c->cache, (c->max+=20)*sizeof(Dir));
|
||||
if(cache == 0)
|
||||
if(c->cache == 0)
|
||||
err("malloc failure");
|
||||
}
|
||||
c->cache[c->n++] = *dir;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue