From 32d37ede49583bb1adae16ec69d3ae5d5816637a Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Sat, 6 Jan 2018 21:48:19 -0800 Subject: [PATCH] [emacs] Add cquery-extra-init-params To enable SerializeFormat::MessagePack and use .mpack cache files: (setq cquery-extra-init-params '(:cacheFormat 1)) --- src/serializer.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/serializer.cc b/src/serializer.cc index d684c6fc..f5a4328d 100644 --- a/src/serializer.cc +++ b/src/serializer.cc @@ -245,6 +245,8 @@ std::unique_ptr Deserialize(SerializeFormat format, } case SerializeFormat::MessagePack: { + if (serialized.empty()) + return nullptr; try { msgpack::object_handle oh = msgpack::unpack(serialized.data(), serialized.size());