sshfs_open_commin(): fix compiler warning

wrctr cannot be used without having been initialized,
but the compiler is too dumb to see that.
This commit is contained in:
Nikolaus Rath 2017-07-12 16:46:02 +02:00
parent 82766d1093
commit 319f0dde18
1 changed files with 1 additions and 1 deletions

View File

@ -2495,7 +2495,7 @@ static int sshfs_open_common(const char *path, mode_t mode,
uint32_t pflags = 0;
struct iovec iov;
uint8_t type;
uint64_t wrctr;
uint64_t wrctr = 0;
if (sshfs.dir_cache)
wrctr = cache_get_write_ctr();