Coverity #1350355 fixed 09/18409/4
Dhruv Khattar [Thu, 4 Aug 2016 09:48:59 +0000 (14:48 +0530)]
Change-Id: Ib0e0617ceac6305e076c8e0825593ec350f647ec

scilab/modules/tclsci/src/c/TCL_ArrayDim.c

index 0e6ca0a..de4ae88 100644 (file)
@@ -50,7 +50,7 @@ char **TCL_ArrayDim(Tcl_Interp *TCLinterpreter, char *VarName, int *nb_lines, in
     char **index_list = NULL;
 
 
-    if (strcmp(VarName, TCL_ALL_INDEXES) || strcmp(VarName, TCL_NUMERICAL_INDEXES))
+    if (strcmp(VarName, TCL_ALL_INDEXES) == 0 || strcmp(VarName, TCL_NUMERICAL_INDEXES) == 0)
     {
         char MyTclCommand[2048];
         char *StrArrayIndexes = NULL;