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>
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;
}
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;
}