From c3114922f40d10c19b3a4f09273f74926d48d914 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Sun, 5 Apr 2015 22:41:25 +0200 Subject: Remove useless duplication of argument to exec_cmdline_command --- vis.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'vis.c') 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) { -- cgit v1.2.3