diff --git a/src/lib/netlist/prg/nltool.cpp b/src/lib/netlist/prg/nltool.cpp index 8b642c4b840..9bc19779e0b 100644 --- a/src/lib/netlist/prg/nltool.cpp +++ b/src/lib/netlist/prg/nltool.cpp @@ -201,7 +201,7 @@ public: stream_ptr stream(const pstring &file) override { pstring name = m_folder + "/" + file; - auto strm(std::make_unique(plib::filesystem::u8path(name))); + stream_ptr strm(std::make_unique(plib::filesystem::u8path(name))); if (strm->fail()) return stream_ptr(nullptr);