diff options
-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; |