CR fix 2
Change-Id: Ib5b7d7ff17f6ae31e9b6d905ef53d015a7389ccc
diff --git a/src/detail/error-encoder.cpp b/src/detail/error-encoder.cpp
index 8d30103..b503f86 100644
--- a/src/detail/error-encoder.cpp
+++ b/src/detail/error-encoder.cpp
@@ -26,7 +26,7 @@
Block
errorEncoder::encodeDataContent(ErrorCode errorCode, const std::string& description)
{
- Block response = makeEmptyBlock(ndn::tlv::Content);
+ Block response(ndn::tlv::Content);
response.push_back(makeNonNegativeIntegerBlock(tlv::ErrorCode, static_cast<size_t>(errorCode)));
response.push_back(makeStringBlock(tlv::ErrorInfo, description));
response.encode();