Skip to content

Commit 6dbdeb3

Browse files
committed
mt2exm: fix jsoncpp API misuse
``` mt2exm: Exception: in Json::Value::clear(): requires complex value ``` References: GXL-645, DESK-4131
1 parent 08f9b02 commit 6dbdeb3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/mt2exm.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ static int exm_create_msg(uint64_t parent_fld, MESSAGE_CONTENT *ctnt,
421421
return -EIO;
422422
}
423423
auto djson = json_to_str(digest);
424-
digest["file"].clear();
424+
digest.removeMember("file");
425425

426426
uint64_t outmid = 0, outcn = 0;
427427
if (!exmdb_client->write_message(g_storedir, CP_UTF8, parent_fld,

0 commit comments

Comments
 (0)