changeset 17359:cb27dbf9e4ba

Don't warn about saving empty variable names for Matlab compatibility (bug #34259) * libinterp/corefcn/load-save.cc(save_vars): Test var name for "" and skip rather than emitting warning.
author Rik <rik@octave.org>
date Thu, 29 Aug 2013 19:48:58 -0700
parents d325a9906a3e
children ba79ba4e83ab
files libinterp/corefcn/load-save.cc
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libinterp/corefcn/load-save.cc
+++ b/libinterp/corefcn/load-save.cc
@@ -1326,6 +1326,8 @@
     {
       for (int i = argv_idx; i < argc; i++)
         {
+          if (argv[i] == "")
+            continue;  // Skip empty vars for Matlab compatibility
           if (! save_vars (os, argv[i], fmt, save_as_floats))
             warning ("save: no such variable '%s'", argv[i].c_str ());
         }