summaryrefslogtreecommitdiffstats
path: root/source3/utils/net_join.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2009-07-29 04:30:52 -0400
committerVolker Lendecke <vl@samba.org>2009-07-29 04:32:21 -0400
commitd8543da9dad3286cd330b98374405edb9f976e77 (patch)
tree31565a3a6052e2316ba5e84bbfc544f7b4ff4bd1 /source3/utils/net_join.c
parent2d0cd3e53ad59f3fe4a42a3158fc85f37e6d6560 (diff)
downloadsamba-d8543da9dad3286cd330b98374405edb9f976e77.tar.gz
samba-d8543da9dad3286cd330b98374405edb9f976e77.tar.xz
samba-d8543da9dad3286cd330b98374405edb9f976e77.zip
Fix unqualified "net join"
Kai, please check! Thanks, Volker
Diffstat (limited to 'source3/utils/net_join.c')
-rw-r--r--source3/utils/net_join.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/source3/utils/net_join.c b/source3/utils/net_join.c
index 98188aae5f..8d4d8c3e52 100644
--- a/source3/utils/net_join.c
+++ b/source3/utils/net_join.c
@@ -34,10 +34,7 @@ int net_join_usage(struct net_context *c, int argc, const char **argv)
int net_join(struct net_context *c, int argc, const char **argv)
{
- if (argc < 1)
- return net_join_usage(c, argc, argv);
-
- if (StrCaseCmp(argv[0], "HELP") == 0) {
+ if ((argc > 0) && (StrCaseCmp(argv[0], "HELP") == 0)) {
net_join_usage(c, argc, argv);
return 0;
}