s3-clitar: Improve readabilty of tar_create_from_list().
authorAndreas Schneider <asn@samba.org>
Mon, 17 Feb 2014 09:57:29 +0000 (10:57 +0100)
committerAndreas Schneider <asn@samba.org>
Wed, 19 Feb 2014 17:22:30 +0000 (18:22 +0100)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: David Disseldorp <ddiss@samba.org>
source3/client/clitar.c

index 1118ba607348de15b2dc8cd740da8c94e19d4842..7990e6f37c4c7fcda852f767e0d1a79a3f1c7ddf 100644 (file)
@@ -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)) {