From 4c0b4894d58094f95d8f053651104521e46da4ec Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Mon, 10 Dec 2012 13:35:27 +0100 Subject: vfs: Make sure we don't call talloc_free on an uninitialized pointer. Found by Coverity. Signed-off-by: Andreas Schneider Reviewed-by: Guenther Deschner --- source3/modules/vfs_media_harmony.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/modules') 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", -- cgit