diff options
author | Laszlo Papp <ext-laszlo.papp@nokia.com> | 2011-03-07 11:32:22 +0200 |
---|---|---|
committer | Miklos Szeredi <mszeredi@suse.cz> | 2011-03-30 19:34:58 +0200 |
commit | c47093404336bbaac2156a15782635dec4f70296 (patch) | |
tree | 64a4d5f54c167da9fbfa2b8ea751a11d79145121 /lib/fuse.c | |
parent | 9deaced060e35695c8bd918080e4f09e1f035b58 (diff) | |
download | android_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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |