mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
- 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
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user