diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2015-04-05 22:41:25 +0200 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2015-04-05 22:41:25 +0200 |
| commit | c3114922f40d10c19b3a4f09273f74926d48d914 (patch) | |
| tree | cf887cfd690bd8fe04a45e451839288aac2b64b7 /vis.c | |
| parent | d41b57ceb609fb08ff166dd95c6c8c8597302102 (diff) | |
| download | vis-c3114922f40d10c19b3a4f09273f74926d48d914.tar.gz vis-c3114922f40d10c19b3a4f09273f74926d48d914.tar.xz | |
Remove useless duplication of argument to exec_cmdline_command
Diffstat (limited to 'vis.c')
| -rw-r--r-- | vis.c | 8 |
1 files changed, 2 insertions, 6 deletions
@@ -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) { |
