summaryrefslogtreecommitdiff
path: root/source4/ntvfs
diff options
context:
space:
mode:
authorGarming Sam <garming@catalyst.net.nz>2014-02-21 09:06:25 +1300
committerAndreas Schneider <asn@samba.org>2014-02-24 17:16:27 +0100
commit209386bbd3177fbd310b36e2d8f09c6ba7f556d3 (patch)
tree6017a7c79173ff8263b0f884f7f31d3f9b3bdfdf /source4/ntvfs
parent8cd8aa6686c21e8c43a6d14c0ae1a21954d6e8cd (diff)
downloadsamba-209386bbd3177fbd310b36e2d8f09c6ba7f556d3.tar.gz
s4: tidy up some null checks in ntvfs
Change-Id: I629a299bea10b063de4525020a4c6b838260cd67 Signed-off-by: Garming Sam <garming@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org> Reviewed-by: Kamen Mazdrashki <kamenim@samba.org>
Diffstat (limited to 'source4/ntvfs')
-rw-r--r--source4/ntvfs/cifs/vfs_cifs.c4
-rw-r--r--source4/ntvfs/smb2/vfs_smb2.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/source4/ntvfs/cifs/vfs_cifs.c b/source4/ntvfs/cifs/vfs_cifs.c
index 16bbf970b49..0c887006901 100644
--- a/source4/ntvfs/cifs/vfs_cifs.c
+++ b/source4/ntvfs/cifs/vfs_cifs.c
@@ -326,12 +326,12 @@ static NTSTATUS cvfs_connect(struct ntvfs_module_context *ntvfs,
p->ntvfs = ntvfs;
ntvfs->ctx->fs_type = talloc_strdup(ntvfs->ctx, "NTFS");
- if (!ntvfs->ctx->fs_type) {
+ if (ntvfs->ctx->fs_type == NULL) {
TALLOC_FREE(tmp_ctx);
return NT_STATUS_NO_MEMORY;
}
ntvfs->ctx->dev_type = talloc_strdup(ntvfs->ctx, "A:");
- if (!ntvfs->ctx->dev_type) {
+ if (ntvfs->ctx->dev_type == NULL) {
TALLOC_FREE(tmp_ctx);
return NT_STATUS_NO_MEMORY;
}
diff --git a/source4/ntvfs/smb2/vfs_smb2.c b/source4/ntvfs/smb2/vfs_smb2.c
index bb9a235e326..705e5842ed7 100644
--- a/source4/ntvfs/smb2/vfs_smb2.c
+++ b/source4/ntvfs/smb2/vfs_smb2.c
@@ -285,12 +285,12 @@ static NTSTATUS cvfs_connect(struct ntvfs_module_context *ntvfs,
p->ntvfs = ntvfs;
ntvfs->ctx->fs_type = talloc_strdup(ntvfs->ctx, "NTFS");
- if (!ntvfs->ctx->fs_type) {
+ if (ntvfs->ctx->fs_type == NULL) {
TALLOC_FREE(tmp_ctx);
return NT_STATUS_NO_MEMORY;
}
ntvfs->ctx->dev_type = talloc_strdup(ntvfs->ctx, "A:");
- if (!ntvfs->ctx->dev_type) {
+ if (ntvfs->ctx->dev_type == NULL) {
TALLOC_FREE(tmp_ctx);
return NT_STATUS_NO_MEMORY;
}