summaryrefslogtreecommitdiff
path: root/storage/connect/valblk.cpp
diff options
context:
space:
mode:
authorOlivier Bertrand <bertrandop@gmail.com>2013-08-13 18:53:14 +0200
committerOlivier Bertrand <bertrandop@gmail.com>2013-08-13 18:53:14 +0200
commitf772ed74d02ceb76d063e4f6c14de4c18c4b946c (patch)
tree25eba4cc4256a4cb19915be40883fc84842b0084 /storage/connect/valblk.cpp
parentbce59293fb75d4a923ca42ff9ea38ef656a34765 (diff)
downloadmariadb-git-f772ed74d02ceb76d063e4f6c14de4c18c4b946c.tar.gz
- FIX MDEV-4853 + another bug causing the whole section to be deleted
when deleting one key of a INI table with layout=Row. The same happens for layout=column but this is normal as one line is one section. modified: storage/connect/tabsys.cpp - Should fix a valgrind warning in CHRBLK::GetValPtrEx modified: storage/connect/valblk.cpp
Diffstat (limited to 'storage/connect/valblk.cpp')
-rw-r--r--storage/connect/valblk.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/storage/connect/valblk.cpp b/storage/connect/valblk.cpp
index 7b52c598771..55f9da7571b 100644
--- a/storage/connect/valblk.cpp
+++ b/storage/connect/valblk.cpp
@@ -712,7 +712,7 @@ void *CHRBLK::GetValPtrEx(int n)
// For VCT blocks we must remove rightmost blanks.
char *p = Valp + Long;
- for (p--; *p == ' ' && p >= Valp; p--) ;
+ for (p--; p >= Valp && *p == ' '; p--) ;
*(++p) = '\0';
} // endif Blanks