aboutsummaryrefslogtreecommitdiff
path: root/vis.c
diff options
context:
space:
mode:
Diffstat (limited to 'vis.c')
-rw-r--r--vis.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/vis.c b/vis.c
index 5bf2d6e..5d1591d 100644
--- a/vis.c
+++ b/vis.c
@@ -627,13 +627,13 @@ void vis_cleanup(Vis *vis)
register_release(&vis->registers[i]);
ui_terminal_free(&vis->ui);
if (vis->usercmds) {
- const char *name;
+ const char *name = 0;
while (map_first(vis->usercmds, &name) && vis_cmd_unregister(vis, name));
}
map_free(vis->usercmds);
map_free(vis->cmds);
if (vis->options) {
- const char *name;
+ const char *name = 0;
while (map_first(vis->options, &name) && vis_option_unregister(vis, name));
}
map_free(vis->options);