summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRay Strode <rstrode@redhat.com>2008-06-03 23:23:25 -0400
committerRay Strode <rstrode@redhat.com>2008-06-03 23:23:25 -0400
commitfe6ba292f59ee8c8cd4b9a2acf3c1052adf356ed (patch)
treeb7bb429aafb940d927ce34b2b496a32a2f5c7aee /src
parent44c2e66f25ecf03fb30bffba3f0988f64b0204c1 (diff)
downloadplymouth-fe6ba292f59ee8c8cd4b9a2acf3c1052adf356ed.tar.gz
plymouth-fe6ba292f59ee8c8cd4b9a2acf3c1052adf356ed.tar.xz
plymouth-fe6ba292f59ee8c8cd4b9a2acf3c1052adf356ed.zip
Don't require argc > 1
Diffstat (limited to 'src')
-rw-r--r--src/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 52d8034..918663d 100644
--- a/src/main.c
+++ b/src/main.c
@@ -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;