]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
Don't require argc > 1
authorRay Strode <rstrode@redhat.com>
Wed, 4 Jun 2008 03:23:25 +0000 (23:23 -0400)
committerRay Strode <rstrode@redhat.com>
Wed, 4 Jun 2008 03:23:25 +0000 (23:23 -0400)
src/main.c

index 52d80347ff3c5a6d1210d17dfb6307a5a867f67d..918663d0386019d903eeedf5ca32acb98d73e850 100644 (file)
@@ -583,7 +583,7 @@ main (int    argc,
         }
     }
 
-  if (argc <= 1 || (attach_to_session && argc != 3) || (attach_to_session && state.ptmx == -1))
+  if ((attach_to_session && argc != 3) || (attach_to_session && state.ptmx == -1))
     {
       ply_error ("%s [--attach-to-session <pty_master_fd>]", argv[0]);
       return EX_USAGE;