summaryrefslogtreecommitdiff
path: root/mysys/tree.c
diff options
context:
space:
mode:
Diffstat (limited to 'mysys/tree.c')
-rw-r--r--mysys/tree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mysys/tree.c b/mysys/tree.c
index 9e69ed9a4db..83be0a0d20f 100644
--- a/mysys/tree.c
+++ b/mysys/tree.c
@@ -224,7 +224,7 @@ TREE_ELEMENT *tree_insert(TREE *tree, void *key, uint key_size,
{
uint alloc_size;
if (tree->flag & TREE_ONLY_DUPS)
- return((TREE_ELEMENT *) 1);
+ return TREE_ELEMENT_UNIQUE;
alloc_size=sizeof(TREE_ELEMENT)+key_size+tree->size_of_element;
tree->allocated+=alloc_size;