aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--vis.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/vis.c b/vis.c
index c46ea3c..d3e3234 100644
--- a/vis.c
+++ b/vis.c
@@ -1865,12 +1865,8 @@ static bool exec_command(char type, const char *cmd) {
}
static void settings_apply(const char **settings) {
- for (const char **opt = settings; opt && *opt; opt++) {
- char *tmp = strdup(*opt);
- if (tmp)
- exec_cmdline_command(tmp);
- free(tmp);
- }
+ for (const char **opt = settings; opt && *opt; opt++)
+ exec_cmdline_command(*opt);
}
static bool vis_window_new(const char *file) {