coverity: fix #1401290 to #1401299 ; use default values on error 69/20969/2
Clément DAVID [Mon, 6 May 2019 09:54:40 +0000 (11:54 +0200)]
Change-Id: Ic89cb3105d5c35bd0a9f96c8a23aef0f74415420

scilab/modules/ui_data/src/cpp/BrowseVarManager.cpp

index 36cc2d9..acf8a64 100644 (file)
@@ -150,12 +150,13 @@ void SetBrowseVarData()
         err = getVarType(NULL, (int*)pIT, &piAllVariableTypes[i]);
         if (err.iErr)
         {
-            return;
+            piAllVariableTypes[i] = 0;
         }
         err = getVarDimension(NULL, (int*)pIT, &nbRows, &nbCols);
         if (err.iErr)
         {
-            return;
+            nbRows = 0;
+            nbCols = 0;
         }
 
         if (pIT->isArrayOf() || pIT->isSparse())