aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/goto-commands.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/goto-commands.c')
-rw-r--r--src/goto-commands.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/goto-commands.c b/src/goto-commands.c
index d463151..bf5743e 100644
--- a/src/goto-commands.c
+++ b/src/goto-commands.c
@@ -90,6 +90,8 @@ teco_state_label_input(teco_machine_main_t *ctx, gunichar chr, GError **error)
teco_undo_string_own(ctx->goto_label);
else
teco_string_clear(&ctx->goto_label);
+ memset(&ctx->goto_label, 0, sizeof(ctx->goto_label));
+
return &teco_state_start;
}