fix free on shell interaction 71/17771/1
Antoine ELIAS [Fri, 5 Feb 2016 10:57:53 +0000 (11:57 +0100)]
Change-Id: Ie5ce53dbbebbf0eb5c4ccc4022b671591afe2347

scilab/modules/core/src/cpp/InitScilab.cpp

index 8c4f5a8..c151e42 100644 (file)
@@ -334,7 +334,7 @@ int StartScilabEngine(ScilabEngineInfo* _pSEI)
         iMainRet = ConfigVariable::getExitStatus();
         iScript = 1;
 
-        if (_pSEI->iCodeAction != 0)
+        if (_pSEI->iCodeAction != -1)
         {
             //alloc in main to manage shell interaction
             FREE(_pSEI->pstExec);