vfs: Make sure we don't call talloc_free on an uninitialized pointer.
authorAndreas Schneider <asn@samba.org>
Mon, 10 Dec 2012 12:35:27 +0000 (13:35 +0100)
committerGünther Deschner <gd@samba.org>
Wed, 12 Dec 2012 08:42:32 +0000 (09:42 +0100)
Found by Coverity.

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
source3/modules/vfs_media_harmony.c

index 360fca692976aaa4e8fc77a6fc7409d55e130f3b..bdbb750e9caa945bd85031177b6bada916e5709d 100644 (file)
@@ -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",