Silenced a gcc warning in spice backend
authorClifford Wolf <clifford@clifford.at>
Sat, 9 Nov 2013 11:01:50 +0000 (12:01 +0100)
committerClifford Wolf <clifford@clifford.at>
Sat, 9 Nov 2013 11:01:50 +0000 (12:01 +0100)
backends/spice/spice.cc

index 28a91714b8cf05e0df8e7944aaa8dbbc62334271..e1a196b8b6df6247c2c4d853d6c1d60fbe67ead6 100644 (file)
@@ -139,7 +139,7 @@ struct SpiceBackend : public Backend {
        virtual void execute(FILE *&f, std::string filename, std::vector<std::string> 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";