From: Volker Lendecke Date: Thu, 29 Oct 2020 20:32:21 +0000 (+0100) Subject: smbclient: Move variable declarations closer to their use X-Git-Tag: talloc-2.3.2~63 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f879c83342865dd4c9c2265fb5ccbea343da7815;p=thirdparty%2Fsamba.git smbclient: Move variable declarations closer to their use Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- diff --git a/source3/client/client.c b/source3/client/client.c index 392b23f06ea..d9db3a9393e 100644 --- a/source3/client/client.c +++ b/source3/client/client.c @@ -813,8 +813,6 @@ NTSTATUS do_list(const char *mask, { static int in_do_list = 0; TALLOC_CTX *ctx = talloc_tos(); - struct cli_state *targetcli = NULL; - char *targetpath = NULL; struct cli_credentials *creds = get_cmdline_auth_info_creds(popt_get_cmdline_auth_info()); NTSTATUS ret_status = NT_STATUS_OK; @@ -836,6 +834,8 @@ NTSTATUS do_list(const char *mask, while (!do_list_queue_empty()) { const char *head = do_list_queue_head(); + struct cli_state *targetcli = NULL; + char *targetpath = NULL; /* check for dfs */