aboutsummaryrefslogtreecommitdiff
path: root/src/serialization
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-04-16 18:48:40 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-06-14 08:47:23 +0000
commit1387549e905fc206426d3099b069bd28df0aad71 (patch)
tree8fbb5700c5a868febfa934c6c280f80d5315a7a4 /src/serialization
parenttree-hash: allocate variable memory on heap, not stack (diff)
downloadmonero-1387549e905fc206426d3099b069bd28df0aad71.tar.xz
serialization: check stream good flag at the end
just in case
Diffstat (limited to 'src/serialization')
-rw-r--r--src/serialization/serialization.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/serialization/serialization.h b/src/serialization/serialization.h
index 007bf265f..553e9951f 100644
--- a/src/serialization/serialization.h
+++ b/src/serialization/serialization.h
@@ -212,7 +212,7 @@ inline bool do_serialize(Archive &ar, bool &v)
* \brief self-explanatory
*/
#define END_SERIALIZE() \
- return true; \
+ return ar.stream().good(); \
}
/*! \macro VALUE(f)