summaryrefslogtreecommitdiff
path: root/mysys
diff options
context:
space:
mode:
authorNirbhay Choubey <nirbhay@mariadb.com>2015-08-07 17:02:51 -0400
committerNirbhay Choubey <nirbhay@mariadb.com>2015-08-07 17:02:51 -0400
commit5b9dd459fb94d44b8852870e89a64d0f953f2eb3 (patch)
tree187a741f80135fe3c565419ae30c6b93bb8bfdfc /mysys
parentaf2f7ce3f915c4686ef04294b00c6f4885503f5e (diff)
parentfa51f70dc68fe2f3afe943e2c81fcbdb34f16cad (diff)
downloadmariadb-git-5b9dd459fb94d44b8852870e89a64d0f953f2eb3.tar.gz
Merge tag 'mariadb-5.5.45' into 5.5-galera
Diffstat (limited to 'mysys')
-rw-r--r--mysys/ptr_cmp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mysys/ptr_cmp.c b/mysys/ptr_cmp.c
index a481b4d961c..6e373e98972 100644
--- a/mysys/ptr_cmp.c
+++ b/mysys/ptr_cmp.c
@@ -1,4 +1,4 @@
-/* Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.
+/* Copyright (c) 2000, 2015, Oracle and/or its affiliates. All rights reserved.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -91,6 +91,7 @@ static int ptr_compare(size_t *compare_length, uchar **a, uchar **b)
reg3 int length= *compare_length;
reg1 uchar *first,*last;
+ DBUG_ASSERT(length > 0);
first= *a; last= *b;
while (--length)
{