vfs_tsmsm: fix potential segfault (freeing uninitialized buffer)
authorMichael Adam <obnox@samba.org>
Mon, 1 Dec 2008 05:17:43 +0000 (06:17 +0100)
committerMichael Adam <obnox@samba.org>
Mon, 1 Dec 2008 05:22:45 +0000 (06:22 +0100)
Michael

source/modules/vfs_tsmsm.c

index ee958b1be5192725bcfde58da8726bc1a446b0ce..6fb1d1d2d46715a471e58b77511be9cd61eeef8f 100644 (file)
@@ -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,