Sfoglia il codice sorgente

Fix a segfault when compiling with gcc -O3

mingodad 9 anni fa
parent
commit
faf042b87f
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      SquiLu/squirrel/sqcompiler.cpp

+ 1 - 0
SquiLu/squirrel/sqcompiler.cpp

@@ -886,6 +886,7 @@ public:
             id = _fs->CreateString(_lex.data->svalue);
         }
         //else id = {}; //old compilers do not allow this
+        else id._type = OT_NULL;
 
 		LogicalOrExp();
 		switch(_token)  {