diff options
author | Russ Cox <rsc@swtch.com> | 2009-02-05 09:17:54 -0800 |
---|---|---|
committer | Russ Cox <rsc@swtch.com> | 2009-02-05 09:17:54 -0800 |
commit | 20512823c85437bdcdf58d3415676e59dd4833ad (patch) | |
tree | 1724c721d89cc1e48ad7fb7eb46332d34e5d4978 | |
parent | f0cd09f3528565c418031a3666f8dbbcb0d3b9bf (diff) | |
download | plan9port-20512823c85437bdcdf58d3415676e59dd4833ad.tar.gz plan9port-20512823c85437bdcdf58d3415676e59dd4833ad.tar.bz2 plan9port-20512823c85437bdcdf58d3415676e59dd4833ad.zip |
du: build by default; fix bug gcc discovered
-rw-r--r-- | src/cmd/du.C | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/du.C b/src/cmd/du.C index 3a96c598..f62c45b7 100644 --- 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; |