diff --git a/backends/spice/spice.cc b/backends/spice/spice.cc index 28a91714..e1a196b8 100644 --- a/backends/spice/spice.cc +++ b/backends/spice/spice.cc @@ -139,7 +139,7 @@ struct SpiceBackend : public Backend { virtual void execute(FILE *&f, std::string filename, std::vector args, RTLIL::Design *design) { std::string top_module_name; - RTLIL::Module *top_module; + RTLIL::Module *top_module = NULL; bool big_endian = false; std::string neg = "Vss", pos = "Vdd", ncpf = "_NC";