vfs_fruit: fix an uninitialized variable error
authorVolker Lendecke <vl@samba.org>
Wed, 5 Sep 2018 09:31:10 +0000 (11:31 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Fri, 7 Sep 2018 15:26:18 +0000 (17:26 +0200)
clang does not recognize "smb_panic" as an "exit()" equivalent

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/modules/vfs_fruit.c

index 1102059bbee90a74cb49e6434a1d55f7858a81cc..894c361a05fc6a456fa3192bb61043bb0ba5b1bf 100644 (file)
@@ -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: