Coverity: api_scilab module memory errors fixed
[scilab.git] / scilab / modules / api_scilab / src / cpp / api_stack_common.cpp
index 785b091..ff7b928 100644 (file)
@@ -586,7 +586,7 @@ SciErr getNamedVarType(void *_pvCtx, const char *_pstName, int *_piType)
 /*--------------------------------------------------------------------------*/
 int isVarComplex(void *_pvCtx, int *_piAddress)
 {
-    SciErr sciErr;
+    SciErr sciErr = sciErrInit();
     int iType = 0;
     int iComplex = 0;