diff options
author | Andreas Schneider <asn@samba.org> | 2014-02-17 10:57:29 +0100 |
---|---|---|
committer | Andreas Schneider <asn@samba.org> | 2014-02-19 18:22:30 +0100 |
commit | 4dd84bb8300e987acaad6d887bf32438e668f847 (patch) | |
tree | fc36a948b440d49d93da76e20814fd8ed735ed52 /source3/client | |
parent | 87c5258fa38bcef3776c42abe636291d16ec65b0 (diff) | |
download | samba-4dd84bb8300e987acaad6d887bf32438e668f847.tar.gz samba-4dd84bb8300e987acaad6d887bf32438e668f847.tar.xz samba-4dd84bb8300e987acaad6d887bf32438e668f847.zip |
s3-clitar: Improve readabilty of tar_create_from_list().
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: David Disseldorp <ddiss@samba.org>
Diffstat (limited to 'source3/client')
-rw-r--r-- | source3/client/clitar.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/client/clitar.c b/source3/client/clitar.c index 1118ba6073..7990e6f37c 100644 --- a/source3/client/clitar.c +++ b/source3/client/clitar.c @@ -813,14 +813,14 @@ static int tar_create_from_list(struct tar *t) DBG(5, ("incl. path='%s', base='%s', mask='%s'\n", path, base ? base : "NULL", mask)); - if (base) { + if (base != NULL) { base = talloc_asprintf(ctx, "%s%s\\", client_get_cur_dir(), path_base_name(path)); DBG(5, ("cd '%s' before do_list\n", base)); client_set_cur_dir(base); } status = do_list(mask, TAR_DO_LIST_ATTR, get_file_callback, false, true); - if (base) { + if (base != NULL) { client_set_cur_dir(start_dir); } if (!NT_STATUS_IS_OK(status)) { |