CID 1366835 fixed 78/18778/1
Clément DAVID [Thu, 8 Dec 2016 14:38:59 +0000 (15:38 +0100)]
Change-Id: I46450651ef9ca18e8631e5706e50f7ddbef1d4e3

scilab/modules/optimization/sci_gateway/cpp/sci_optim.cpp

index 9624dbd..d2090bc 100644 (file)
@@ -1131,7 +1131,7 @@ types::Function::ReturnValue sci_optim(types::typed_list &in, types::optional_li
 
         if (iSaveD)
         {
-            if (C2F(nird).ndzs == 0)
+            if (pdblDzs == NULL || C2F(nird).ndzs == 0)
             {
                 out.push_back(types::Double::Empty());
             }