From feb0fb86166a65e27446acc0ced1123397229f0e Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Wed, 15 Sep 2004 22:49:23 +0000 Subject: r2361: Fix the appalling toktocliplist() fn. Bug found by Luis Benvenutto. Jeremy. --- source/client/clitar.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'source/client/clitar.c') 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 [IXbgan] \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; } /**************************************************************************** -- cgit