insertion in output of function call
[scilab.git] / scilab / modules / ast / includes / ast / runvisitor.hxx
index 7211e99..ac300b2 100644 (file)
@@ -311,7 +311,11 @@ public :
             }
             else
             {
-                pArgs->push_back(getResult());
+                if (getResult())
+                {
+                    pArgs->push_back(getResult());
+                }
+                //else optional argument skipped
             }
         }
         //to be sure, delete operation does not delete result