mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
- Fix MDEV-9322.
modified: storage/connect/json.cpp
This commit is contained in:
@@ -594,8 +594,8 @@ PSZ Serialize(PGLOBAL g, PJSON jsp, char *fn, int pretty)
|
|||||||
if (fs) {
|
if (fs) {
|
||||||
fputs(EL, fs);
|
fputs(EL, fs);
|
||||||
fclose(fs);
|
fclose(fs);
|
||||||
str = (err) ? NULL : "Ok";
|
str = (err) ? NULL : strcpy(g->Message, "Ok");
|
||||||
} else if (!err) {
|
} else if (!err) {
|
||||||
str = ((JOUTSTR*)jp)->Strp;
|
str = ((JOUTSTR*)jp)->Strp;
|
||||||
jp->WriteChr('\0');
|
jp->WriteChr('\0');
|
||||||
PlugSubAlloc(g, NULL, ((JOUTSTR*)jp)->N);
|
PlugSubAlloc(g, NULL, ((JOUTSTR*)jp)->N);
|
||||||
|
Reference in New Issue
Block a user