plan9port

fork of plan9port with libvec, libstr and libsdb
Log | Files | Refs | README | LICENSE

commit 20512823c85437bdcdf58d3415676e59dd4833ad
parent f0cd09f3528565c418031a3666f8dbbcb0d3b9bf
Author: Russ Cox <rsc@swtch.com>
Date:   Thu,  5 Feb 2009 09:17:54 -0800

du: build by default; fix bug gcc discovered

Diffstat:
Msrc/cmd/du.C | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/cmd/du.C b/src/cmd/du.C @@ -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;