]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
setterm: remove unnecessary variable
authorSami Kerola <kerolasa@iki.fi>
Sun, 13 Jul 2014 16:27:10 +0000 (17:27 +0100)
committerSami Kerola <kerolasa@iki.fi>
Sun, 13 Jul 2014 16:27:10 +0000 (17:27 +0100)
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
term-utils/setterm.c

index afbd274f4f4f67dceb9c4836edb4fc8d280f4340..f21466e61c73ea2a46bf46a86f46d8c07379af86 100644 (file)
@@ -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);