diff options
author | Garming Sam <garming@catalyst.net.nz> | 2014-02-21 09:06:25 +1300 |
---|---|---|
committer | Andreas Schneider <asn@samba.org> | 2014-02-24 17:16:27 +0100 |
commit | 209386bbd3177fbd310b36e2d8f09c6ba7f556d3 (patch) | |
tree | 6017a7c79173ff8263b0f884f7f31d3f9b3bdfdf /source4/ntvfs/cifs | |
parent | 8cd8aa6686c21e8c43a6d14c0ae1a21954d6e8cd (diff) | |
download | samba-209386bbd3177fbd310b36e2d8f09c6ba7f556d3.tar.gz samba-209386bbd3177fbd310b36e2d8f09c6ba7f556d3.tar.xz samba-209386bbd3177fbd310b36e2d8f09c6ba7f556d3.zip |
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/cifs')
-rw-r--r-- | source4/ntvfs/cifs/vfs_cifs.c | 4 |
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; } |