summaryrefslogtreecommitdiff
path: root/source3/modules
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2012-12-10 13:35:27 +0100
committerGünther Deschner <gd@samba.org>2012-12-12 09:42:32 +0100
commit4c0b4894d58094f95d8f053651104521e46da4ec (patch)
tree930217462722369b465c7683a70f31d44698b925 /source3/modules
parente039676fe2c2fe5c7ef53e1e58487dd048e37013 (diff)
downloadsamba-4c0b4894d58094f95d8f053651104521e46da4ec.tar.gz
samba-4c0b4894d58094f95d8f053651104521e46da4ec.tar.bz2
samba-4c0b4894d58094f95d8f053651104521e46da4ec.zip
vfs: Make sure we don't call talloc_free on an uninitialized pointer.
Found by Coverity. Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Guenther Deschner <gd@samba.org>
Diffstat (limited to 'source3/modules')
-rw-r--r--source3/modules/vfs_media_harmony.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/modules/vfs_media_harmony.c b/source3/modules/vfs_media_harmony.c
index 360fca6929..bdbb750e9c 100644
--- a/source3/modules/vfs_media_harmony.c
+++ b/source3/modules/vfs_media_harmony.c
@@ -808,7 +808,7 @@ static DIR *mh_fdopendir(vfs_handle_struct *handle,
const char *mask,
uint32 attr)
{
- struct mh_dirinfo_struct *dirInfo;
+ struct mh_dirinfo_struct *dirInfo = NULL;
DIR *dirstream;
DEBUG(MH_INFO_DEBUG, ("Entering with fsp->fsp_name->base_name '%s'\n",