du: build by default; fix bug gcc discovered

This commit is contained in:
Russ Cox 2009-02-05 09:17:54 -08:00
parent f0cd09f352
commit 20512823c8

View file

@ -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;