summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2005-06-23 22:20:37 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:57:59 -0500
commit98d1f6ceff8cc55c153d6171c236bb25c27e8954 (patch)
treee51255dfc9ccd805a8d10b9273709bcb6702f19d /source3
parent81ee9412854fe57124144a1337f2e6680d1afd80 (diff)
downloadsamba-98d1f6ceff8cc55c153d6171c236bb25c27e8954.tar.gz
samba-98d1f6ceff8cc55c153d6171c236bb25c27e8954.tar.bz2
samba-98d1f6ceff8cc55c153d6171c236bb25c27e8954.zip
r7849: Dodgy fix - we shouldn't be assuming argc++ points to a valid argv.
Jeremy. (This used to be commit 5fbabaef8cab894c6d349b0535a06c2c9d1437db)
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);
}