Skip to content

Commit 3e76d54

Browse files
committed
- Fix MDEV-9322.
modified: storage/connect/json.cpp
1 parent e57876e commit 3e76d54

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

storage/connect/json.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -594,7 +594,7 @@ PSZ Serialize(PGLOBAL g, PJSON jsp, char *fn, int pretty)
594594
if (fs) {
595595
fputs(EL, fs);
596596
fclose(fs);
597-
str = (err) ? NULL : "Ok";
597+
str = (err) ? NULL : strcpy(g->Message, "Ok");
598598
} else if (!err) {
599599
str = ((JOUTSTR*)jp)->Strp;
600600
jp->WriteChr('\0');

0 commit comments

Comments
 (0)