summaryrefslogtreecommitdiff
path: root/source4/ntvfs/cifs/vfs_cifs.c
diff options
context:
space:
mode:
Diffstat (limited to 'source4/ntvfs/cifs/vfs_cifs.c')
-rw-r--r--source4/ntvfs/cifs/vfs_cifs.c4
1 files changed, 2 insertions, 2 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;
}