aboutsummaryrefslogtreecommitdiffstats
path: root/lib/fuse.c
diff options
context:
space:
mode:
authorLaszlo Papp <ext-laszlo.papp@nokia.com>2011-03-07 11:32:22 +0200
committerMiklos Szeredi <mszeredi@suse.cz>2011-03-30 19:34:58 +0200
commitc47093404336bbaac2156a15782635dec4f70296 (patch)
tree64a4d5f54c167da9fbfa2b8ea751a11d79145121 /lib/fuse.c
parent9deaced060e35695c8bd918080e4f09e1f035b58 (diff)
downloadandroid_external_fuse-c47093404336bbaac2156a15782635dec4f70296.tar.gz
android_external_fuse-c47093404336bbaac2156a15782635dec4f70296.tar.bz2
android_external_fuse-c47093404336bbaac2156a15782635dec4f70296.zip
Initialize an allocated, but uninitialized memory
Diffstat (limited to 'lib/fuse.c')
-rw-r--r--lib/fuse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/fuse.c b/lib/fuse.c
index ff2e5b3..02af677 100644
--- a/lib/fuse.c
+++ b/lib/fuse.c
@@ -2314,7 +2314,7 @@ static struct fuse_context_i *fuse_get_context_internal(void)
c = (struct fuse_context_i *) pthread_getspecific(fuse_context_key);
if (c == NULL) {
c = (struct fuse_context_i *)
- malloc(sizeof(struct fuse_context_i));
+ calloc(1, sizeof(struct fuse_context_i));
if (c == NULL) {
/* This is hard to deal with properly, so just
abort. If memory is so low that the