diff options
Diffstat (limited to 'usr/src/cmd/csh/sh.func.c')
| -rw-r--r-- | usr/src/cmd/csh/sh.func.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/src/cmd/csh/sh.func.c b/usr/src/cmd/csh/sh.func.c index 57db65037b..3796f9e4df 100644 --- a/usr/src/cmd/csh/sh.func.c +++ b/usr/src/cmd/csh/sh.func.c @@ -522,7 +522,7 @@ doforeach(tchar **v) if (v == 0) { bferr("No match"); } - nwp = (struct whyle *)calloc(1, sizeof (*nwp)); + nwp = (struct whyle *)xcalloc(1, sizeof (*nwp)); nwp->w_fe = nwp->w_fe0 = v; gargv = 0; nwp->w_start = btell(); nwp->w_fename = savestr(cp); @@ -563,7 +563,7 @@ dowhile(tchar **v) bferr("Expression syntax"); } if (!again) { - struct whyle *nwp = (struct whyle *)calloc(1, sizeof (*nwp)); + struct whyle *nwp = (struct whyle *)xcalloc(1, sizeof (*nwp)); nwp->w_start = lineloc; nwp->w_end = 0; |
