chiark / gitweb /
getty-generator: fix handling systems without a console
[elogind.git] / src / getty-generator / getty-generator.c
index 1cef6aeae999851db56328badeae72fd00dc5a26..cb38f21052e6e3ec476a4a5423e963d6b8a3c67d 100644 (file)
@@ -131,7 +131,7 @@ int main(int argc, char *argv[]) {
 
                 /* Automatically add in a serial getty on the kernel
                  * console */
-                if (tty_is_vc(tty))
+                if (isempty(tty) || tty_is_vc(tty))
                         free(active);
                 else {
                         int k;