Mercurial > hg > octave-lojdl
changeset 1517:5a02b9fba19e
[project @ 1995-10-03 22:36:14 by jwe]
author | jwe |
---|---|
date | Tue, 03 Oct 1995 22:36:14 +0000 |
parents | 14d8c0a838c1 |
children | 84bd88b8acee |
files | src/variables.cc |
diffstat | 1 files changed, 5 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/variables.cc +++ b/src/variables.cc @@ -127,9 +127,12 @@ { tree_fvc *ans = 0; - const char *fcn_name = arg.string_value (); + const char *fcn_name = 0; - if (error_state) + if (arg.is_string ()) + fcn_name = arg.string_value (); + + if (! fcn_name || error_state) { if (warn) error ("%s: expecting function name as argument", warn_for);