summaryrefslogtreecommitdiff
path: root/source3/utils/net_groupmap.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/utils/net_groupmap.c')
-rw-r--r--source3/utils/net_groupmap.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/source3/utils/net_groupmap.c b/source3/utils/net_groupmap.c
index 323f4afbc3..06a8daa775 100644
--- a/source3/utils/net_groupmap.c
+++ b/source3/utils/net_groupmap.c
@@ -508,9 +508,8 @@ int net_groupmap(int argc, const char **argv)
return -1;
}
- return net_run_function(argc, argv, func, net_help_groupmap);
- if ( 0 == argc )
- return net_help_groupmap( argc, argv );
+ if ( argc )
+ return net_run_function(argc, argv, func, net_help_groupmap);
return net_help_groupmap( argc, argv );
}