Mercurial > hg > octave-nkf
changeset 5531:ad2e70544c77
[project @ 2005-11-07 19:12:21 by jwe]
author | jwe |
---|---|
date | Mon, 07 Nov 2005 19:12:21 +0000 |
parents | 6f29a563b976 |
children | 8ad54ce6a831 |
files | src/ChangeLog src/strfns.cc |
diffstat | 2 files changed, 5 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,6 +1,7 @@ 2005-11-07 John W. Eaton <jwe@octave.org> - * strfns.cc (Fstrcmp): Initialize retval to false. + * strfns.cc (Fstrcmp): If args are not strings or cell arrays of + strings, return false. 2005-11-01 John W. Eaton <jwe@octave.org>
--- a/src/strfns.cc +++ b/src/strfns.cc @@ -154,7 +154,7 @@ just the opposite of the corresponding C library function.\n\ @end deftypefn") { - octave_value retval = false; + octave_value retval; if (args.length () == 2) { @@ -356,6 +356,8 @@ retval = output; } + else + retval = false; } else print_usage ("strcmp");