From 16ae42ad5b54a34935cad367b2c504169965b4e3 Mon Sep 17 00:00:00 2001 From: Lars Bilke <lars.bilke@ufz.de> Date: Fri, 16 Jun 2017 11:05:03 +0200 Subject: [PATCH] [GL] Fixed variable initialized with null instead of map. This crashed the convertGEO utility. Thanks to JM for reporting! This bug was introduced with a6ff2c7a. --- GeoLib/IO/Legacy/OGSIOVer4.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/GeoLib/IO/Legacy/OGSIOVer4.cpp b/GeoLib/IO/Legacy/OGSIOVer4.cpp index c845d6b1120..715efec6424 100644 --- a/GeoLib/IO/Legacy/OGSIOVer4.cpp +++ b/GeoLib/IO/Legacy/OGSIOVer4.cpp @@ -452,7 +452,8 @@ bool readGLIFileV4(const std::string& fname, // read names of points into vector of strings auto pnt_id_names_map = - std::unique_ptr<std::map<std::string, std::size_t>>{}; + std::unique_ptr<std::map<std::string, std::size_t>> + { new std::map<std::string, std::size_t> }; bool zero_based_idx(true); auto pnt_vec = std::make_unique<std::vector<GeoLib::Point*>>(); -- GitLab