From: Ray Strode Date: Wed, 4 Jun 2008 03:23:25 +0000 (-0400) Subject: Don't require argc > 1 X-Git-Tag: 0.2.0~34 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fe6ba292f59ee8c8cd4b9a2acf3c1052adf356ed;p=thirdparty%2Fplymouth.git Don't require argc > 1 --- diff --git a/src/main.c b/src/main.c index 52d80347..918663d0 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 ]", argv[0]); return EX_USAGE;