s3:utils/smbget set default blocksize
authorChristian Ambach <ambi@samba.org>
Thu, 4 Feb 2016 20:39:47 +0000 (21:39 +0100)
committerVolker Lendecke <vl@samba.org>
Fri, 5 Feb 2016 11:10:16 +0000 (12:10 +0100)
this got lost in the recent refactorings and causes problems
when smbget attempts to use a zero byte read buffer

Signed-off-by: Christian Ambach <ambi@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
Autobuild-User(master): Volker Lendecke <vl@samba.org>
Autobuild-Date(master): Fri Feb  5 12:10:16 CET 2016 on sn-devel-144

source3/utils/smbget.c

index 417ed8443578d2a71ea941b74b0cd12df107a211..91809d1d2456192bbcf7d490106056715e523a80 100644 (file)
@@ -57,7 +57,7 @@ struct opt {
        bool update;
        int debuglevel;
 };
-static struct opt opt;
+static struct opt opt = { .blocksize = SMB_DEFAULT_BLOCKSIZE };
 
 static bool smb_download_file(const char *base, const char *name,
                              bool recursive, bool resume, bool toplevel,