aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikolaus Rath <Nikolaus@rath.org>2017-07-12 16:46:02 +0200
committerNikolaus Rath <Nikolaus@rath.org>2017-07-12 16:46:02 +0200
commit319f0dde18afb6f4abf9258d6e74e762077b4e86 (patch)
treee87a73078206d94f9165b6e1d29b951b1cbf07b5
parent82766d1093daccc933bfcdae44d3634db61806fe (diff)
downloadsshfs-319f0dde18afb6f4abf9258d6e74e762077b4e86.tar
sshfs-319f0dde18afb6f4abf9258d6e74e762077b4e86.tar.gz
sshfs-319f0dde18afb6f4abf9258d6e74e762077b4e86.tar.bz2
sshfs-319f0dde18afb6f4abf9258d6e74e762077b4e86.zip
sshfs_open_commin(): fix compiler warning
wrctr cannot be used without having been initialized, but the compiler is too dumb to see that.
-rw-r--r--sshfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sshfs.c b/sshfs.c
index f9ae9eb..acea663 100644
--- a/sshfs.c
+++ b/sshfs.c
@@ -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();