tdu: build by default; fix bug gcc discovered - plan9port - [fork] Plan 9 from user space (HTM) git clone git://src.adamsgaard.dk/plan9port (DIR) Log (DIR) Files (DIR) Refs (DIR) README (DIR) LICENSE --- (DIR) commit 20512823c85437bdcdf58d3415676e59dd4833ad (DIR) parent f0cd09f3528565c418031a3666f8dbbcb0d3b9bf (HTM) Author: Russ Cox <rsc@swtch.com> Date: Thu, 5 Feb 2009 09:17:54 -0800 du: build by default; fix bug gcc discovered Diffstat: M src/cmd/du.C | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- (DIR) diff --git a/src/cmd/du.C b/src/cmd/du.C t@@ -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;