summaryrefslogtreecommitdiffstats
path: root/source3/client
diff options
context:
space:
mode:
Diffstat (limited to 'source3/client')
-rw-r--r--source3/client/clitar.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/source3/client/clitar.c b/source3/client/clitar.c
index b8bdbdd1b9..12a5e0d5cc 100644
--- a/source3/client/clitar.c
+++ b/source3/client/clitar.c
@@ -250,14 +250,17 @@ int cmd_block(void)
char *buf;
TALLOC_CTX *ctx = PANIC_IF_NULL(talloc_new(NULL));
int err = 0;
+ bool ok;
- if (!next_token_talloc(ctx, &cmd_ptr, &buf, NULL)) {
+ ok = next_token_talloc(ctx, &cmd_ptr, &buf, NULL);
+ if (!ok) {
DBG(0, ("blocksize <n>\n"));
err = 1;
goto out;
}
- if (tar_set_blocksize(&tar_ctx, atoi(buf))) {
+ ok = tar_set_blocksize(&tar_ctx, atoi(buf));
+ if (ok) {
DBG(0, ("invalid blocksize\n"));
err = 1;
goto out;