From 9888362b39d8e1383cc7209f2f414d6d34f3df8e Mon Sep 17 00:00:00 2001 From: Tim Potter Date: Wed, 5 Sep 2001 04:30:53 +0000 Subject: [PATCH] Don't crash if run with no command line arguments. (-: (This used to be commit a46e9cc3a1a247fba8fe9b4cdfa16954071b4a35) --- source3/rpcclient/rpcclient.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source3/rpcclient/rpcclient.c b/source3/rpcclient/rpcclient.c index 57ae56521d2..a60d7fa3cb3 100644 --- a/source3/rpcclient/rpcclient.c +++ b/source3/rpcclient/rpcclient.c @@ -651,7 +651,7 @@ static void usage(void) argc -= optind; /* Parse options */ - if (argc > 1) { + if (argc < 2) { usage(); return 0; } -- 2.34.1