]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
main: corrected error in read_consoles_from_file
authorKevin Murphy <kemurphy@andrew.cmu.edu>
Fri, 27 Apr 2012 05:11:14 +0000 (01:11 -0400)
committerRay Strode <rstrode@redhat.com>
Fri, 27 Apr 2012 15:22:19 +0000 (11:22 -0400)
src/main.c

index f02a7a9e413acee2beee1b2ca3b5fdffe1e0325f..f471f0153766bb9e56be265762c1dacc5a3648a8 100644 (file)
@@ -1935,7 +1935,7 @@ add_consoles_from_file (state_t         *state,
       if (strcmp (console, "tty0") != 0)
         state->should_force_details = true;
 
-      asprintf (&console_device, "/dev/%s", contents);
+      asprintf (&console_device, "/dev/%s", console);
 
       free (console);