diff --git a/libwccl/wcclfileopsections.h b/libwccl/wcclfileopsections.h index bfc90b3b0627bd06d255f9a40a83a8da9aeefd1f..9c848d2f7b64c2f6ee56ea300e9c57861af9550a 100644 --- a/libwccl/wcclfileopsections.h +++ b/libwccl/wcclfileopsections.h @@ -116,7 +116,7 @@ size_t WcclFileOpSections<T>::size() const template<class T> inline std::vector<std::string> WcclFileOpSections<T>::section_names() const { - std::vector<std::string> v(size()); + std::vector<std::string> v; foreach(const ptr_t& section, sections_) { v.push_back(section->name()); }