From e021ecea45bbd41fb671d3f0cb8f5c271f14ba7f Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Mon, 1 Dec 2008 06:20:22 +0100 Subject: [PATCH] s3:vfs_tsmsm: fix potential segfault (freeing uninitialized buffer) Michael --- source3/modules/vfs_tsmsm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source3/modules/vfs_tsmsm.c b/source3/modules/vfs_tsmsm.c index ee958b1be51..6fb1d1d2d46 100644 --- a/source3/modules/vfs_tsmsm.c +++ b/source3/modules/vfs_tsmsm.c @@ -148,7 +148,7 @@ static bool tsmsm_is_offline(struct vfs_handle_struct *handle, dm_attrname_t dmname; int ret, lerrno; bool offline; - char *buf; + char *buf = NULL; size_t buflen; /* if the file has more than FILE_IS_ONLINE_RATIO of blocks available, -- 2.34.1