summaryrefslogtreecommitdiffstats
path: root/source/client/clitar.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2004-09-15 22:49:23 +0000
committerJeremy Allison <jra@samba.org>2004-09-15 22:49:23 +0000
commitfeb0fb86166a65e27446acc0ced1123397229f0e (patch)
tree52a7b0636bc455ff3c4ee1f2f925d80103314770 /source/client/clitar.c
parent01d29df0b73b881e319b1fe65bca6993fef0b926 (diff)
downloadsamba-feb0fb86166a65e27446acc0ced1123397229f0e.tar.gz
samba-feb0fb86166a65e27446acc0ced1123397229f0e.tar.xz
samba-feb0fb86166a65e27446acc0ced1123397229f0e.zip
r2361: Fix the appalling toktocliplist() fn. Bug found by Luis Benvenutto.
Jeremy.
Diffstat (limited to 'source/client/clitar.c')
-rw-r--r--source/client/clitar.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/source/client/clitar.c b/source/client/clitar.c
index 64c194b54da..4cadef558d6 100644
--- a/source/client/clitar.c
+++ b/source/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;
}
/****************************************************************************