# HG changeset patch # User Rik # Date 1377830938 25200 # Node ID cb27dbf9e4bac1a7996714e640ef366f9ade8b81 # Parent d325a9906a3e124e49b9b5dde65ba859eedda388 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. diff --git a/libinterp/corefcn/load-save.cc b/libinterp/corefcn/load-save.cc --- 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 ()); }