diff options
| author | Toby Goodwin <tjg@star.le.ac.uk> | 2003-08-13 13:51:14 +0100 |
|---|---|---|
| committer | Toby Goodwin <toby@paccrat.org> | 2015-05-16 21:22:10 +0100 |
| commit | d884971193ef4934424b77ae862e8b0ecf70bab3 (patch) | |
| tree | 700b8fd63be483aaa2a737036a3f7833fdf7b26a /nalloc.c | |
| parent | 77b18786228a8cf9f58aee09677440c61dc218a9 (diff) | |
release: rc-1.7.1
Diffstat (limited to 'nalloc.c')
| -rw-r--r-- | nalloc.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -112,8 +112,10 @@ extern void restoreblock(Block *old) { /* generic memory allocation functions */ extern void *ealloc(size_t n) { - void *p = malloc(n); + void *p; + assert(n); + p = malloc(n); if (p == NULL) { uerror("malloc"); rc_exit(1); |