fix basic_path::Parts::Parts(const Parts &) bug
authorJacob Lifshay <programmerjake@gmail.com>
Thu, 29 Jun 2017 07:19:06 +0000 (00:19 -0700)
committerJacob Lifshay <programmerjake@gmail.com>
Thu, 29 Jun 2017 07:19:06 +0000 (00:19 -0700)
src/util/filesystem.h

index 070c2f9ae210725a767f4ebf4e0f441362da9b78..7588b64da43650df93b41dcfede0c579b668cdcc 100644 (file)
@@ -653,7 +653,7 @@ private:
             Parts new_parts;
             new_parts.reserve(rt.used_count);
             for(std::size_t i = 0; i < rt.used_count; i++)
-                push_back(rt.values[i]);
+                new_parts.push_back(rt.values[i]);
             swap(new_parts);
         }
         Parts(Parts &&rt) noexcept : Parts()