commit | 20512823c85437bdcdf58d3415676e59dd4833ad | [log] [tgz] |
---|---|---|
author | Russ Cox <rsc@swtch.com> | Thu Feb 05 09:17:54 2009 -0800 |
committer | Russ Cox <rsc@swtch.com> | Thu Feb 05 09:17:54 2009 -0800 |
tree | 1724c721d89cc1e48ad7fb7eb46332d34e5d4978 | |
parent | f0cd09f3528565c418031a3666f8dbbcb0d3b9bf [diff] |
du: build by default; fix bug gcc discovered
diff --git a/src/cmd/du.C b/src/cmd/du.C index 3a96c59..f62c45b 100644 --- a/src/cmd/du.C +++ b/src/cmd/du.C
@@ -162,7 +162,7 @@ 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;