summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-rw-r--r--source3/utils/net_rpc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/utils/net_rpc.c b/source3/utils/net_rpc.c
index fb34b1e9e3..4c9c4e5724 100644
--- a/source3/utils/net_rpc.c
+++ b/source3/utils/net_rpc.c
@@ -3374,6 +3374,7 @@ static int rpc_share_migrate(int argc, const char **argv)
char mode = NET_MODE_SHARE_MIGRATE;
argv[argc++] = &mode;
+ argv[argc] = NULL;
return net_run_function(argc, argv, func, rpc_share_usage);
}