diff options
author | Ashley Pittman <ashleypittman@users.noreply.github.com> | 2018-02-09 13:42:12 +0000 |
---|---|---|
committer | Nikolaus Rath <Nikolaus@rath.org> | 2018-02-09 13:42:12 +0000 |
commit | 03515bbb3092da9b3c2c6a267de90f9f0dcbdb29 (patch) | |
tree | ddcb984feef517fd47e9aa3d4f780ca4ae875812 | |
parent | 917e72973dd589c8b20f6b00ac20013094e2bba0 (diff) |
Fix uninitialised read in fuse_new_30() (#231) (#234)
Ensure that conf is always zero before it's read from to prevent
sporadic failure at startup if higher layers were build against
version 3.0
Signed-off-by: Ashley Pittman <ashley.m.pittman@intel.com>
-rw-r--r-- | lib/fuse.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -4842,6 +4842,9 @@ struct fuse *fuse_new_30(struct fuse_args *args, size_t op_size, void *user_data) { struct fuse_config conf; + + memset(&conf, 0, sizeof(conf)); + const struct fuse_opt opts[] = { FUSE_LIB_OPT("-h", show_help, 1), FUSE_LIB_OPT("--help", show_help, 1), |