From: Andreas Schneider Date: Mon, 10 Dec 2012 12:35:27 +0000 (+0100) Subject: vfs: Make sure we don't call talloc_free on an uninitialized pointer. X-Git-Tag: ldb-1.1.15~371 X-Git-Url: http://git.samba.org/samba.git/?p=kamenim%2Fsamba-autobuild%2F.git;a=commitdiff_plain;h=4c0b4894d58094f95d8f053651104521e46da4ec 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 --- diff --git a/source3/modules/vfs_media_harmony.c b/source3/modules/vfs_media_harmony.c index 360fca69297..bdbb750e9ca 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",