uint64_t *dfree,
uint64_t *dsize)
{
- struct statvfs statvfs_buf;
+ struct statvfs statvfs_buf = { 0 };
int ret;
if (!(ret = ceph_statfs(handle->data, smb_fname->base_name,
const struct smb_filename *smb_fname,
struct vfs_statvfs_struct *statbuf)
{
- struct statvfs statvfs_buf;
+ struct statvfs statvfs_buf = { 0 };
int ret;
ret = ceph_statfs(handle->data, smb_fname->base_name, &statvfs_buf);
uint32_t attributes)
{
int ret = 0;
- struct ceph_dir_result *result;
+ struct ceph_dir_result *result = NULL;
DBG_DEBUG("[CEPH] fdopendir(%p, %p)\n", handle, fsp);
ret = ceph_opendir(handle->data, fsp->fsp_name->base_name, &result);
struct files_struct *dirfsp,
DIR *dirp)
{
- struct dirent *result;
+ struct dirent *result = NULL;
DBG_DEBUG("[CEPH] readdir(%p, %p)\n", handle, dirp);
result = ceph_readdir(handle->data, (struct ceph_dir_result *) dirp);
struct smb_filename *smb_fname)
{
int result = -1;
- struct ceph_statx stx;
+ struct ceph_statx stx = { 0 };
DBG_DEBUG("[CEPH] stat(%p, %s)\n", handle, smb_fname_str_dbg(smb_fname));
static int cephwrap_fstat(struct vfs_handle_struct *handle, files_struct *fsp, SMB_STRUCT_STAT *sbuf)
{
int result = -1;
- struct ceph_statx stx;
+ struct ceph_statx stx = { 0 };
int fd = fsp_get_pathref_fd(fsp);
DBG_DEBUG("[CEPH] fstat(%p, %d)\n", handle, fd);
struct smb_filename *smb_fname)
{
int result = -1;
- struct ceph_statx stx;
+ struct ceph_statx stx = { 0 };
DBG_DEBUG("[CEPH] lstat(%p, %s)\n", handle, smb_fname_str_dbg(smb_fname));
#else
char link_target_buf[7];
#endif
- struct ceph_statx stx;
+ struct ceph_statx stx = { 0 };
struct smb_filename *full_fname = NULL;
int ret;