Coverity #1350431 fixed 09/18509/2
Dhruv Khattar [Mon, 22 Aug 2016 14:54:25 +0000 (19:54 +0530)]
Change-Id: If98f80c091c4779bb3954739b6f598e75200632b

scilab/modules/io/sci_gateway/cpp/sci_write.cpp

index 09b4b88..1eb76d6 100644 (file)
@@ -171,16 +171,8 @@ types::Function::ReturnValue sci_write(types::typed_list &in, int _iRetCount, ty
             }
             case types::InternalType::ScilabDouble:
             {
-                if (iID == 6)
-                {
-                    pstFormat = (char*)MALLOC(sizeof(char) * (strlen("((1x,1pd17.10))") + (int)log10(iCols) + 2));
-                    sprintf(pstFormat, "(%d(1x,1pd17.10))", iCols);
-                }
-                else
-                {
-                    pstFormat = (char*)MALLOC(sizeof(char) * (strlen("((1x,1pd17.10))") + (int)log10(iCols) + 2));
-                    sprintf(pstFormat, "(%d(1x,1pd17.10))", iCols);
-                }
+                pstFormat = (char*)MALLOC(sizeof(char) * (strlen("((1x,1pd17.10))") + (int)log10(iCols) + 2));
+                sprintf(pstFormat, "(%d(1x,1pd17.10))", iCols);
                 break;
             }
             case types::InternalType::ScilabString: