From: Volker Lendecke Date: Wed, 5 Sep 2018 09:31:10 +0000 (+0200) Subject: vfs_fruit: fix an uninitialized variable error X-Git-Tag: tdb-1.3.17~1681 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a5f9b33cb47d7cb91a201e058b18bc5d45c397ef;p=thirdparty%2Fsamba.git vfs_fruit: fix an uninitialized variable error clang does not recognize "smb_panic" as an "exit()" equivalent Signed-off-by: Volker Lendecke Reviewed-by: Ralph Boehme --- diff --git a/source3/modules/vfs_fruit.c b/source3/modules/vfs_fruit.c index 1102059bbee..894c361a05f 100644 --- a/source3/modules/vfs_fruit.c +++ b/source3/modules/vfs_fruit.c @@ -2331,7 +2331,7 @@ static off_t access_to_netatalk_brl(enum apple_fork fork_type, static off_t denymode_to_netatalk_brl(enum apple_fork fork_type, uint32_t deny_mode) { - off_t offset; + off_t offset = 0; switch (deny_mode) { case DENY_READ: