du: build by default; fix bug gcc discovered
This commit is contained in:
parent
f0cd09f352
commit
20512823c8
@ -162,7 +162,7 @@ seen(Dir *dir)
|
|||||||
return 1;
|
return 1;
|
||||||
if(c->n == c->max){
|
if(c->n == c->max){
|
||||||
c->cache = realloc(c->cache, (c->max+=20)*sizeof(Dir));
|
c->cache = realloc(c->cache, (c->max+=20)*sizeof(Dir));
|
||||||
if(cache == 0)
|
if(c->cache == 0)
|
||||||
err("malloc failure");
|
err("malloc failure");
|
||||||
}
|
}
|
||||||
c->cache[c->n++] = *dir;
|
c->cache[c->n++] = *dir;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user