From: Sami Kerola Date: Sun, 13 Jul 2014 16:27:10 +0000 (+0100) Subject: setterm: remove unnecessary variable X-Git-Tag: v2.25~75^2~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4636f0613de3d06e2a057d5d948fa85142758721;p=thirdparty%2Futil-linux.git setterm: remove unnecessary variable Signed-off-by: Sami Kerola --- diff --git a/term-utils/setterm.c b/term-utils/setterm.c index afbd274f4f..f21466e61c 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);