summaryrefslogtreecommitdiff
path: root/heap/hp_write.c
diff options
context:
space:
mode:
authormonty@hundin.mysql.fi <>2001-09-12 23:53:31 +0300
committermonty@hundin.mysql.fi <>2001-09-12 23:53:31 +0300
commit7a1998780596ac62b8fa50a98cc90e1a797da0c9 (patch)
tree51a09b9e3466647e4386ab24f3c9aa89ff7a93b9 /heap/hp_write.c
parent46f944f4a43612ec75df32737625a95d01e751e8 (diff)
downloadmariadb-git-7a1998780596ac62b8fa50a98cc90e1a797da0c9.tar.gz
OS2 patch
Diffstat (limited to 'heap/hp_write.c')
-rw-r--r--heap/hp_write.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/heap/hp_write.c b/heap/hp_write.c
index e74183276f7..12b5c638f78 100644
--- a/heap/hp_write.c
+++ b/heap/hp_write.c
@@ -38,7 +38,7 @@ int heap_write(HP_INFO *info, const byte *record)
DBUG_ENTER("heap_write");
#ifndef DBUG_OFF
- if (info->mode && O_RDONLY)
+ if (info->mode & O_RDONLY)
{
DBUG_RETURN(my_errno=EACCES);
}