Github user phrocker commented on a diff in the pull request:
https://github.com/apache/nifi-minifi-cpp/pull/429#discussion_r229018550
--- Diff: libminifi/src/capi/api.cpp ---
@@ -170,31 +165,31 @@ flow_file_record* create_ff_object_na(const char
*file, const size_t len, const
new_ff->attributes = nullptr;
new_ff->contentLocation = new char[len + 1];
snprintf(new_ff->contentLocation, len + 1, "%s", file);
- std::ifstream in(file, std::ifstream::ate | std::ifstream::binary);
// set the size of the flow file.
new_ff->size = size;
+ new_ff->crp = static_cast<void*>(new
std::shared_ptr<minifi::core::ContentRepository>);
--- End diff --
make_shared ?
---