summaryrefslogtreecommitdiff
path: root/source3/client
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2004-09-15 22:49:23 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:52:40 -0500
commit3ef0710fa4f487e8887a8c16714c6443009e4a47 (patch)
tree4ad47fd76ee5f23267a9ec513b15b11567fe3a59 /source3/client
parent20e9f051e2fe5867e11988139399bac692112fc6 (diff)
downloadsamba-3ef0710fa4f487e8887a8c16714c6443009e4a47.tar.gz
samba-3ef0710fa4f487e8887a8c16714c6443009e4a47.tar.bz2
samba-3ef0710fa4f487e8887a8c16714c6443009e4a47.zip
r2361: Fix the appalling toktocliplist() fn. Bug found by Luis Benvenutto.
Jeremy. (This used to be commit d434d8e2b47bc8553ee04bd7211f622e3fcbb7fb)
Diffstat (limited to 'source3/client')
-rw-r--r--source3/client/clitar.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/source3/client/clitar.c b/source3/client/clitar.c
index 64c194b54d..4cadef558d 100644
--- a/source3/client/clitar.c
+++ b/source3/client/clitar.c
@@ -1345,8 +1345,9 @@ Principal command for creating / extracting
int cmd_tar(void)
{
fstring buf;
- char **argl;
- int argcl;
+ char **argl = NULL;
+ int argcl = 0;
+ int ret;
if (!next_token_nr(NULL,buf,NULL,sizeof(buf))) {
DEBUG(0,("tar <c|x>[IXbgan] <filename>\n"));
@@ -1357,8 +1358,9 @@ int cmd_tar(void)
if (!tar_parseargs(argcl, argl, buf, 0))
return 1;
+ ret = process_tar();
SAFE_FREE(argl);
- return process_tar();
+ return ret;
}
/****************************************************************************