diff options
Diffstat (limited to 'sh.parse.c')
-rw-r--r-- | sh.parse.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sh.parse.c b/sh.parse.c index 2ef20c457199..35ffe833f4d8 100644 --- a/sh.parse.c +++ b/sh.parse.c @@ -1,4 +1,4 @@ -/* $Header: /p/tcsh/cvsroot/tcsh/sh.parse.c,v 3.18 2006/03/02 18:46:44 christos Exp $ */ +/* $Header: /p/tcsh/cvsroot/tcsh/sh.parse.c,v 3.19 2011/03/30 16:21:37 christos Exp $ */ /* * sh.parse.c: Interpret a list of tokens */ @@ -32,7 +32,7 @@ */ #include "sh.h" -RCSID("$tcsh: sh.parse.c,v 3.18 2006/03/02 18:46:44 christos Exp $") +RCSID("$tcsh: sh.parse.c,v 3.19 2011/03/30 16:21:37 christos Exp $") /* * C shell @@ -677,6 +677,9 @@ freesyn(struct command *t) default: break; } +#ifdef DEBUG + memset(t, 0, sizeof(*t)); +#endif xfree(t); } |