aboutsummaryrefslogtreecommitdiff
path: root/tecundo.c
diff options
context:
space:
mode:
Diffstat (limited to 'tecundo.c')
-rw-r--r--tecundo.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/tecundo.c b/tecundo.c
index 927cea3..9dd5feb 100644
--- a/tecundo.c
+++ b/tecundo.c
@@ -368,11 +368,7 @@ register struct undo_token *ut;
ut = (struct undo_token *)tec_alloc(TYPE_C_UNDO,sizeof(struct undo_token));
if(ut == NULL) return(NULL);
- ut->opcode = UNDO_C_UNUSED;
- ut->iarg1 = 0;
- ut->iarg2 = 0;
- ut->carg1 = NULL;
- ut->next_token = NULL;
+ memset(ut,0,sizeof(*ut));
if(ct != NULL){
ut->next_token = ct->undo_list;