[PATCH 03/14] setterm: remove unnecessary variable

Sami Kerola
2014-07-13T20:25:11Z

term-utils/setterm.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/term-utils/setterm.c b/term-utils/setterm.c
index afbd274..f21466e 100644
--- a/term-utils/setterm.c
+++ b/term-utils/setterm.c
@@ -770,12 +770,11 @@ static void screendump(struct setterm_control *ctl)
size_t i, j;
ssize_t rc;
char *inbuf, *outbuf, *p, *q;
- char dump_default[] = "screen.dump";

/* open source and destination files */
fd = open_snapshot_device(ctl);
if (!ctl->opt_sn_name)
- ctl->opt_sn_name = dump_default;
+ ctl->opt_sn_name = "screen.dump";
out = fopen(ctl->opt_sn_name, ctl->opt_snap ? "w" : "a");
if (!out)
err(EXIT_DUMPFILE, _("can not open dump file %s for output"), ctl->opt_sn_name);
--
2.0.1